Commit 816b1942 authored by Miklos Magyari's avatar Miklos Magyari
Browse files

fixed possible null exception


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 9fabbe68
...@@ -287,6 +287,7 @@ public final class SubstrExpression extends Expression_Value { ...@@ -287,6 +287,7 @@ public final class SubstrExpression extends Expression_Value {
value1 = ((SpecificValue_Template) temp).getSpecificValue(); value1 = ((SpecificValue_Template) temp).getSpecificValue();
value1.setLoweridToReference(timestamp); value1.setLoweridToReference(timestamp);
final IType templateGovernor = templateInstance1.getExpressionGovernor(timestamp, expectedValue); final IType templateGovernor = templateInstance1.getExpressionGovernor(timestamp, expectedValue);
if(templateGovernor != null) {
final IType lastTemplateGovernor = templateGovernor.getTypeRefdLast(timestamp); final IType lastTemplateGovernor = templateGovernor.getTypeRefdLast(timestamp);
switch (lastTemplateGovernor.getTypetype()) { switch (lastTemplateGovernor.getTypetype()) {
...@@ -335,6 +336,7 @@ public final class SubstrExpression extends Expression_Value { ...@@ -335,6 +336,7 @@ public final class SubstrExpression extends Expression_Value {
break; break;
} }
} }
}
if (value2 != null) { if (value2 != null) {
value2.setLoweridToReference(timestamp); value2.setLoweridToReference(timestamp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment