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:
parent
b78d754109
commit
03024722e6
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue