Skip to content

Commit

Permalink
[#231] Fixed unintended crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgenii Grigorev authored and blcham committed Jul 15, 2024
1 parent 4745de5 commit cd2a0bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public static Query createQuery(org.topbraid.spin.model.Query spinQuery) {
String msg = e.getMessage();
Pattern pattern = Pattern.compile("line\\s+(\\d+)");
Matcher matcher = pattern.matcher(msg);
assert(matcher.find());
matcher.find();
String numberAfterLine = matcher.group(1);
int wrongLineNumber = Integer.valueOf(numberAfterLine); //e.g
// etLine() returns wrong number for some reason
Expand Down

0 comments on commit cd2a0bb

Please sign in to comment.