mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 414692. Fixed an NPE.
This commit is contained in:
parent
9d7a23cde5
commit
bea119c534
1 changed files with 6 additions and 4 deletions
|
@ -576,10 +576,12 @@ public abstract class PDOMWriter implements IPDOMASTProcessor {
|
||||||
boolean pragmaOnce= owner != null ? owner.hasPragmaOnceSemantics() : data.fAST.hasPragmaOnceSemantics();
|
boolean pragmaOnce= owner != null ? owner.hasPragmaOnceSemantics() : data.fAST.hasPragmaOnceSemantics();
|
||||||
file.setPragmaOnceSemantics(pragmaOnce);
|
file.setPragmaOnceSemantics(pragmaOnce);
|
||||||
|
|
||||||
String headerKey = IndexLocationFactory.getAbsolutePath(location).toOSString();
|
if (data.fReplacementHeaders != null) {
|
||||||
String replacementHeader = data.fReplacementHeaders.get(headerKey);
|
String headerKey = IndexLocationFactory.getAbsolutePath(location).toOSString();
|
||||||
if (replacementHeader != null)
|
String replacementHeader = data.fReplacementHeaders.get(headerKey);
|
||||||
file.setReplacementHeader(replacementHeader);
|
if (replacementHeader != null)
|
||||||
|
file.setReplacementHeader(replacementHeader);
|
||||||
|
}
|
||||||
|
|
||||||
Symbols lists= data.fSymbolMap.get(owner);
|
Symbols lists= data.fSymbolMap.get(owner);
|
||||||
if (lists != null) {
|
if (lists != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue