1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 17:26:01 +02:00

Don't allow creation of EvalID without a name.

This commit is contained in:
Sergey Prigogin 2014-01-02 11:49:39 -08:00
parent 2e6729ef6f
commit cafab91ca1

View file

@ -72,6 +72,8 @@ public class EvalID extends CPPDependentEvaluation {
public EvalID(ICPPEvaluation fieldOwner, IBinding nameOwner, char[] simpleID, boolean addressOf,
boolean qualified, ICPPTemplateArgument[] templateArgs, IBinding templateDefinition) {
super(templateDefinition);
if (simpleID == null)
throw new NullPointerException("simpleID"); //$NON-NLS-1$
fFieldOwner= fieldOwner;
fName= simpleID;
fNameOwner= nameOwner;