1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[174299] null check for strange startup case that I incountered once

This commit is contained in:
David McKnight 2007-03-28 17:26:18 +00:00
parent f0a3e7a719
commit 0fb1c30dab

View file

@ -423,8 +423,14 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
if(absName!=null) return absName.hashCode();
return ident.hashCode();
}
}
if (element != null) // adding check because I hit a null exception here once at startup
return element.hashCode();
else
{
//System.out.println("null element");
return 0;
}
return element.hashCode();
}
});