Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.7-core, 1.2.7-core
-
None
Description
I have a skin that returns a "NullIcon" object. This icon object does not have an iconURI so it returns null. While the TreeRenderer supports a null iconURI, there is erroneous logic when trying to retrieve the uri which causes a null pointer exception.
The current code reads:
if (iconURI == null && icon != null)
{ iconURI = icon.getImageURI(context, rc).toString(); }This should be changed to:
if (iconURI == null && icon != null)
{
//This can be null so we need to check for it before doing toString
Object o = icon.getImageURI(context, rc);
if(o != null)
}