Object reference not set to an instance of an object.

Posted by Community Admin on 03-Aug-2018 03:01

Object reference not set to an instance of an object.

All Replies

Posted by Community Admin on 18-Aug-2010 00:00

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

Posted by Community Admin on 18-Aug-2010 00:00

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

This thread is closed