Bug - null values

Oct 11, 2010 at 8:55 PM

The "BuildPropertyTable()" method of the page "PropertyBagSettings.aspx" has a bug in that it doesn't account for the fact that a property value may be null.  When this occurs it causes the page to throw an exception "object not set to an instance of an object".  I used the following temporary fix to get around the issue -

Change line 406 -

sp.Add(new SortedProperties(property.Key.ToString(), property.Value.ToString()));  

To -

if (property.Value != null)
   sp.Add(new SortedProperties(property.Key.ToString(), property.Value.ToString()));  

 

Coordinator
Oct 14, 2010 at 7:54 AM

Thanks for reporting this bug. I just fixed it and the new version is available here: http://pbs.codeplex.com/releases/23387/download/157113