1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Object reference not set to an instance of an object.

Object reference not set to an instance of an object.

2 posts, 0 answered
  1. Sonu Kapoor
    Sonu Kapoor avatar
    41 posts
    Registered:
    24 Apr 2006
    18 Aug 2010
    Link to this post
    Hello,

    When viewing a page that is using the categories control and browsing by category the above error is throwen. Here are the exact steps to reproduce the issue:

    1. Add a category or create a new one
    2. Drag the categories control into a new or existing page
    3. View the page now in the browser
    4. Click on the category and you will see the error.

    Here is the full stack trace:

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Telerik.Sitefinity.Web.UrlEvaluation.TaxonomyEvaluator.Evaluate(String url, Guid& taxon, Type contentType) +614
       Telerik.Sitefinity.Web.UrlEvaluation.TaxonomyEvaluator.Evaluate(String url, String propertyName, Type contentType, Object[]& values) +91
       Telerik.Sitefinity.Web.UrlEvaluation.UrlEvaluator.EvaluateUrl(Control control, String evaluatorName, String propertyName, Type contentType, Object[]& values) +153
       Telerik.Sitefinity.Web.UrlEvaluation.UrlEvaluator.EvaluateUrl(Control control, IQueryable`1 query, String evaluatorName, String propertyName, Type contentType) +64
       Telerik.Sitefinity.Modules.News.Web.UI.MasterListView.InitializeControls(GenericContainer container, IContentViewDefinition definition) +381
       Telerik.Sitefinity.Web.UI.ContentUI.Views.Backend.ViewBase.CreateChildControls() +74
       System.Web.UI.Control.EnsureChildControls() +145
       System.Web.UI.Control.PreRenderRecursiveInternal() +70
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Control.PreRenderRecursiveInternal() +238
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3531
    
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    18 Aug 2010
    Link to this post
    Hello Sonu Kapoor,

    I tried to reproduce this issue with the BETA and I did not face any null reference exception. Please take a look at attached video.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered