1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Bug 467359 - NPE in ProblemHighlighting.consumes

Change-Id: Ifc59349cb7995846a061ff39e7fe4e2d33384d61
This commit is contained in:
Sergey Prigogin 2015-05-14 17:48:52 -07:00
parent cfd440afca
commit 096aa0f966

View file

@ -1331,6 +1331,9 @@ public class SemanticHighlightings {
@Override
public boolean consumes(ISemanticToken token) {
IASTNode node= token.getNode();
if (node == null) {
return false;
}
if (node.getTranslationUnit().isBasedOnIncompleteIndex()) {
// Do not highlight problems if the AST is unreliable.
return false;