Skip to content

Commit b4c9598

Browse files
Handles Error
1 parent 0024045 commit b4c9598

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/javacalculus/evaluator/CalcMULTIPLY.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ protected CalcObject evaluateMatrix(CalcMatrix input1, CalcMatrix input2) {
132132

133133
@Override
134134
protected CalcObject evaluateSymbol(CalcSymbol input1, CalcSymbol input2) {
135+
if (input1.equals(CALC.ERROR) || input2.equals(CALC.ERROR)) {
136+
return CALC.ERROR;
137+
}
135138
return null;
136139
}
137140

0 commit comments

Comments
 (0)