Skip to content

Commit f4f1f78

Browse files
author
Tobias Stoeckert
committed
exception avoiding
1 parent d50b8d7 commit f4f1f78

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)