Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.17
-
None
Description
RuleUtil has a bug at line 95:
final int end = eventSrcName.lastIndexOf('.'); eventSrcName = eventSrcName.substring(0, end);
This code leads to a StringIndexOutOfBoundsException if the variable does not contain a period. I don't know if its a convention to have a period in that string, but either way the error message should me more expressive.
Attachments
Issue Links
- is duplicated by
-
MCHECKSTYLE-354 Plugin throws exception on encountering rule: SeparatorWrapDot of Google checkstyle
- Closed
-
MCHECKSTYLE-367 Regexp module fails when "id" property without a "." is provided
- Closed
- links to