You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at com.fasterxml.jackson.module.mrbean.BeanBuilder.decap(BeanBuilder.java:350)
at com.fasterxml.jackson.module.mrbean.BeanBuilder.getPropertyName(BeanBuilder.java:192)
at com.fasterxml.jackson.module.mrbean.BeanBuilder.addGetter(BeanBuilder.java:209)
at com.fasterxml.jackson.module.mrbean.BeanBuilder.implement(BeanBuilder.java:87)
I'm getting an NPE from decap function that assumes strings to be non-empty as property names should be. The addGetter (and addSetter) should check that methodName is either more than 3 or 2 chars long depending on the prefix so that cases like introducing a java.util.function.Supplier also work
cowtowncoder
changed the title
NPE from MrBean when get or set is though as property
NPE from MrBean when get() or set() is though as property
Feb 13, 2018
I'm getting an NPE from
decap
function that assumes strings to be non-empty as property names should be. TheaddGetter
(andaddSetter
) should check that methodName is either more than 3 or 2 chars long depending on the prefix so that cases like introducing ajava.util.function.Supplier
also workThe text was updated successfully, but these errors were encountered: