mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed NPE.
This commit is contained in:
parent
a00758b82c
commit
45206789d6
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ public class EvalID extends CPPEvaluation {
|
|||
|
||||
@Override
|
||||
public int determinePackSize(ICPPTemplateParameterMap tpMap) {
|
||||
int r = fFieldOwner.determinePackSize(tpMap);
|
||||
int r = fFieldOwner != null ? fFieldOwner.determinePackSize(tpMap) : CPPTemplates.PACK_SIZE_NOT_FOUND;
|
||||
for (ICPPTemplateArgument arg : fTemplateArgs) {
|
||||
r = CPPTemplates.combinePackSize(r, CPPTemplates.determinePackSize(arg, tpMap));
|
||||
}
|
||||
|
@ -345,6 +345,6 @@ public class EvalID extends CPPEvaluation {
|
|||
|
||||
@Override
|
||||
public boolean referencesTemplateParameter() {
|
||||
return fFieldOwner.referencesTemplateParameter();
|
||||
return fFieldOwner != null && fFieldOwner.referencesTemplateParameter();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue