From 03024722e625de1c728d77f6326511433db81d76 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Fri, 21 Jan 2011 10:00:10 +0000 Subject: [PATCH] Work around false null-pointer access warning. --- .../parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java index 7f467a1e46f..db71c52305d 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMFile.java @@ -541,8 +541,8 @@ public class PDOMFile implements IIndexFragmentFile { final PDOMFile targetFile= (PDOMFile) info.fTargetFile; PDOMInclude pdomInclude = new PDOMInclude(fLinkage, info.fStatement, this, targetFile); + assert targetFile == null || targetFile.getIndexFragment() instanceof IWritableIndexFragment; if (targetFile != null) { - assert targetFile.getIndexFragment() instanceof IWritableIndexFragment; targetFile.addIncludedBy(pdomInclude, info.fIsContext); } if (lastInclude == null) {