Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-03-11 09:31:11 +0000
committerAnton Leherbauer2008-03-11 09:31:11 +0000
commit3320c11eaec198eb8cc2dba771aa097b77b6da6c (patch)
tree621e7eaa561a453bc2c7585201960f6bb73c91ce /core/org.eclipse.cdt.core/parser
parenta3d89182db7ab64bdefb352390831c55690aea79 (diff)
downloadorg.eclipse.cdt-3320c11eaec198eb8cc2dba771aa097b77b6da6c.tar.gz
org.eclipse.cdt-3320c11eaec198eb8cc2dba771aa097b77b6da6c.tar.xz
org.eclipse.cdt-3320c11eaec198eb8cc2dba771aa097b77b6da6c.zip
Fix for 222093: [mark occurrences] occasional NullPointerException
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVisitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVisitor.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVisitor.java
index a064428a6d3..b42b19a9be5 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVisitor.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CVisitor.java
@@ -449,7 +449,7 @@ public class CVisitor {
private boolean sameBinding(IBinding binding1, IBinding binding2) {
if (binding1 == binding2)
return true;
- if (binding1.equals(binding2))
+ if (binding1 != null && binding1.equals(binding2))
return true;
return false;
}

Back to the top