Skip to content

Commit

Permalink
Guard for null and add more text
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Aug 29, 2023
1 parent 6cb4ab2 commit e08a92d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public CharSequence subSequence(int start, int end) {

@Override
public String toString() {
return str.substring(beg, beg + len);
return "StringWrapper(" + (str == null ? "" : str.substring(beg, beg + len)) + ")";
}

@Override
Expand Down

0 comments on commit e08a92d

Please sign in to comment.