Skip to content

Commit 5c3fa69

Browse files
committed
Add failsafe for processing#713.
1 parent cd313c6 commit 5c3fa69

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

java/src/processing/mode/java/debug/VariableNode.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,10 @@ public int hashCode() {
399399
private String describeArray(String fullDescription) {
400400
Matcher matcher = ARRAY_REGEX.matcher(fullDescription);
401401
StringJoiner joiner = new StringJoiner("");
402-
System.out.println(matcher.matches());
402+
if (!matcher.matches()) {
403+
return fullDescription;
404+
}
405+
403406
joiner.add(matcher.group("prefix")); // Type without brackets
404407
joiner.add(matcher.group("bounded")); // Brackets with numbers
405408
joiner.add(matcher.group("unbounded")); // Brackets without numbers

0 commit comments

Comments
 (0)