Commit 47fd8cd6 authored by Christoph Richter's avatar Christoph Richter
Browse files

fixup! ConstructComplexMatrix: Fixed wrong class cast (gitlab #3)

parent 0cc325a2
Pipeline #61626 passed with stage
in 3 minutes and 15 seconds
......@@ -132,8 +132,7 @@ public class ConstructComplexMatrix {
private static Complex getComplex(MathExpressionSymbol expressionSymbol) {
if (expressionSymbol.isParenthesisExpression())
expressionSymbol = ((MathParenthesisExpressionSymbol) expressionSymbol).getMathExpressionSymbol();
if (((MathValueExpressionSymbol) expressionSymbol).isNumberExpression())
if ((expressionSymbol instanceof MathValueExpressionSymbol) && ((MathValueExpressionSymbol) expressionSymbol).isNumberExpression())
return castToComplex((MathNumberExpressionSymbol) expressionSymbol);
else if (expressionSymbol.isArithmeticExpression())
return dissolveMathExpression(expressionSymbol);
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