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