1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Work around false null-pointer access warning.

This commit is contained in:
Markus Schorn 2011-01-21 10:00:10 +00:00
parent b78d754109
commit 03024722e6

View file

@ -541,8 +541,8 @@ public class PDOMFile implements IIndexFragmentFile {
final PDOMFile targetFile= (PDOMFile) info.fTargetFile; final PDOMFile targetFile= (PDOMFile) info.fTargetFile;
PDOMInclude pdomInclude = new PDOMInclude(fLinkage, info.fStatement, this, targetFile); PDOMInclude pdomInclude = new PDOMInclude(fLinkage, info.fStatement, this, targetFile);
assert targetFile == null || targetFile.getIndexFragment() instanceof IWritableIndexFragment;
if (targetFile != null) { if (targetFile != null) {
assert targetFile.getIndexFragment() instanceof IWritableIndexFragment;
targetFile.addIncludedBy(pdomInclude, info.fIsContext); targetFile.addIncludedBy(pdomInclude, info.fIsContext);
} }
if (lastInclude == null) { if (lastInclude == null) {