Resolves issue #12. BaseNode was referencing a null model. Added null check to prevent null pointer exception.

This commit is contained in:
dennis.sheirer
2014-10-26 23:50:31 +00:00
parent 330fa53338
commit 338c37af4d

View File

@@ -157,9 +157,12 @@ public class BaseNode extends DefaultMutableTreeNode
} }
public void refresh() public void refresh()
{
if( getModel() != null )
{ {
getModel().nodeChanged( this ); getModel().nodeChanged( this );
} }
}
public void sort() public void sort()
{ {