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:
parent
f0a3e7a719
commit
0fb1c30dab
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue