http://ofbiz.116.s1.nabble.com/jira-Created-OFBIZ-70-EmailServices-storeIncomingEmail-EmailServices-java-643-String-index-out-of-ra1-tp169170p169171.html
Jacopo Cappellato closed OFBIZ-70.
> EmailServices.storeIncomingEmail(EmailServices.java:643)-- String index out of range: -1
> ----------------------------------------------------------------------------------------
>
> Key: OFBIZ-70
> URL:
http://issues.apache.org/jira/browse/OFBIZ-70> Project: OFBiz (The Open for Business Project)
> Issue Type: Bug
> Components: content
> Reporter: BJ Freeman
>
> 46701852[ ServiceMcaAction.java:69 :ERROR] String index out of range: -1
> 346702033[ EmailServices.java:747:ERROR]
> ---- runtime exception report --------------------------------------------------
> Exception: java.lang.StringIndexOutOfBoundsException
> Message: String index out of range: -1
> ---- stack trace ---------------------------------------------------------------
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> java.lang.String.substring(String.java:1444)
> com.businessesnetwork.communications.EmailServices.storeIncomingEmail(EmailServices.java:643)
> sun.reflect.GeneratedMethodAccessor195.invoke(Unknown Source)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:324)
> l int idx = contentTypeRaw.indexOf(";");
> ine 643 contentType = contentTypeRaw.substring(0, idx);
> email being evaluated
> Content-Type: text/plain
> Content-Disposition: inline
> Content-Transfer-Encoding: 7bit
> MIME-Version: 1.0
> I think the indexof for a semicoln will set idx to null
> so line 643 fails.
> should test for null then
> contentType = contentTypeRaw;
This message is automatically generated by JIRA.