Skip to content

Commit 29eb648

Browse files
author
Tobias Stoeckert
committed
further exception avoidance
1 parent 2511c0d commit 29eb648

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

soot-infoflow/src/soot/jimple/infoflow/problems/BackwardsInfoflowProblem.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ private Set<Abstraction> computeAliases(final DefinitionStmt defStmt, Value left
209209
ArrayRef arrayRef = (ArrayRef) leftValue;
210210
newType = TypeUtils.buildArrayOrAddDimension(newType, arrayRef.getType().getArrayType());
211211
} else if (defStmt.getRightOp() instanceof ArrayRef) {
212-
newType = ((ArrayType) newType).getElementType();
212+
if (newType instanceof ArrayType)
213+
newType = ((ArrayType) newType).getElementType();
214+
else
215+
newType = null;
213216
} else {
214217
// Type check
215218
if (!manager.getTypeUtils().checkCast(source.getAccessPath(), leftValue.getType()))

0 commit comments

Comments
 (0)