Skip to content

Commit 18d145d

Browse files
authored
Merge pull request #412 from TobiasStoeckert95/single-change
exception avoiding
2 parents d50b8d7 + f4f1f78 commit 18d145d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

soot-infoflow/src/soot/jimple/infoflow/problems/rules/ArrayPropagationRule.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ && getAliasing().mayAlias(rightBase, source.getAccessPath().getPlainValue())) {
6969
// We must remove one layer of array typing, e.g., A[][] -> A[]
7070
Type targetType = source.getAccessPath().getBaseType();
7171
assert targetType instanceof ArrayType;
72-
targetType = ((ArrayType) targetType).getElementType();
72+
if (targetType instanceof ArrayType)
73+
targetType = ((ArrayType) targetType).getElementType();
74+
else
75+
targetType = null;
7376

7477
// Create the new taint abstraction
7578
ArrayTaintType arrayTaintType = source.getAccessPath().getArrayTaintType();

0 commit comments

Comments
 (0)