1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-09 18:15:23 +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

@ -424,7 +424,13 @@ ISelectionChangedListener, ITreeViewerListener, ISystemResourceChangeEvents, ISy
return ident.hashCode(); return ident.hashCode();
} }
} }
return element.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;
}
} }
}); });