[ 
https://issues.apache.org/jira/browse/MCHECKSTYLE-344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Wegener updated MCHECKSTYLE-344:
---------------------------------------
    Comment: was deleted

(was: 
Hallo,

ich bin bis zum 17.11.2018 im Urlaub und bis dahin leider nicht erreichbar.

Beste Grüße

Daniel Wegener
Holisticon AG

Griegstraße 75, Haus 25
22763 Hamburg
Mobile: +49 176 1616 9025
Office: +49 40 6094 430-0
Fax:  +49 40 6094 430-30
E-Mail: [email protected]<mailto:[email protected]>
www.holisticon.de<http://www.holisticon.de>

Amtsgericht Hamburg, HRB 107396
Vorstand: Oliver Ihns, Dierk Harbeck
Aufsichtsrat: Sune Nilsson (Vorsitz)
)

> StringIndexOutOfBoundsException in RuleUtil
> -------------------------------------------
>
>                 Key: MCHECKSTYLE-344
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-344
>             Project: Maven Checkstyle Plugin
>          Issue Type: Bug
>          Components: checkstyle:check
>    Affects Versions: 2.17
>            Reporter: fdvxxii
>            Assignee: Guillaume Boué
>            Priority: Major
>             Fix For: 3.0.1
>
>
> {{RuleUtil}} has a bug at line 95:
> {code}
>               final int end = eventSrcName.lastIndexOf('.');
>               eventSrcName = eventSrcName.substring(0, end);          
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to