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:
parent
cfd440afca
commit
096aa0f966
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue