Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/codan
diff options
context:
space:
mode:
authorAndrew Gvozdev2009-07-30 13:53:30 +0000
committerAndrew Gvozdev2009-07-30 13:53:30 +0000
commit8f13804b5d349353b8ff2fe92c542ac2fd25c1b3 (patch)
treed499711245a14be5974d6c323083bd95b54ea767 /codan
parentdc1fa0f4c08cf4a327d8355a940a27c17724923f (diff)
downloadorg.eclipse.cdt-8f13804b5d349353b8ff2fe92c542ac2fd25c1b3.tar.gz
org.eclipse.cdt-8f13804b5d349353b8ff2fe92c542ac2fd25c1b3.tar.xz
org.eclipse.cdt-8f13804b5d349353b8ff2fe92c542ac2fd25c1b3.zip
bug 285125: [code analysis] NPE during reconcile
Diffstat (limited to 'codan')
-rw-r--r--codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/builder/CodanBuilder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/builder/CodanBuilder.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/builder/CodanBuilder.java
index 683c7b02dda..d12a8cf6652 100644
--- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/builder/CodanBuilder.java
+++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/builder/CodanBuilder.java
@@ -113,6 +113,9 @@ public class CodanBuilder extends IncrementalProjectBuilder {
}
public void reconcileAst(IASTTranslationUnit ast, IProgressMonitor monitor) {
+ if (ast == null)
+ return;
+
String filePath = ast.getFilePath();
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot();

Back to the top