if (tree == null)
{
System.out.println("tree is null");
+ // TODO: deal with case when a change event is received whilst a tree is still being calculated - should save reference for processing message later.
+ return;
}
if (evt.getNewValue() == null)
{