a more informative message if getSuggestion() fails
This commit is contained in:
parent
12ca3ca1bc
commit
15c618bc0b
1 changed files with 5 additions and 1 deletions
|
|
@ -168,7 +168,11 @@ public class SuggestionsBar {
|
||||||
return suggestion;
|
return suggestion;
|
||||||
}
|
}
|
||||||
|
|
||||||
return stem + suggestion.substring(startIndex, endIndex);
|
try {
|
||||||
|
return stem + suggestion.substring(startIndex, endIndex);
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw new IndexOutOfBoundsException("Failed cutting '" + suggestion + "' from: " + startIndex + " to: " + endIndex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue