Skip to content

Commit e8c8997

Browse files
Fix FormulaCreator.dequote for symbol names have a length < 2
1 parent b12fbad commit e8c8997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/sosy_lab/java_smt/basicimpl/FormulaCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ public Object convertValue(
785785
/** Variable names (symbols) can be wrapped with "|". This function removes those chars. */
786786
protected static String dequote(String s) {
787787
int l = s.length();
788-
if (s.charAt(0) == '|' && s.charAt(l - 1) == '|') {
788+
if (l >= 2 && s.charAt(0) == '|' && s.charAt(l - 1) == '|') {
789789
return s.substring(1, l - 1);
790790
}
791791
return s;

0 commit comments

Comments
 (0)