Skip to content

Commit b66e9b5

Browse files
author
Jennifer Lhoták
committed
- fix for string folding with null constant
1 parent caa511a commit b66e9b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/soot/javaToJimple/JimpleBodyBuilder.java

+3
Original file line numberDiff line numberDiff line change
@@ -2819,6 +2819,9 @@ else if (node instanceof polyglot.ast.IntLit){
28192819
else if (node instanceof polyglot.ast.FloatLit){
28202820
s = "" + ((polyglot.ast.FloatLit)node).value();
28212821
}
2822+
else if (node instanceof polyglot.ast.NullLit){
2823+
s = "null";
2824+
}
28222825
else if (node instanceof polyglot.ast.Field){
28232826
polyglot.ast.Field field = (polyglot.ast.Field)node;
28242827
if (field.fieldInstance().constantValue() instanceof String){

0 commit comments

Comments
 (0)