[ https://issues.apache.org/jira/browse/SLING-6569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Lietz resolved SLING-6569. --------------------------------- Resolution: Fixed Changed to throw meaningful NPE instead of returning empty string when ResourceBundle is null in [r1785186|https://svn.apache.org/r1785186] after discussion with [~kwin] on dev@. > NPE in DefaultValidationFailure when resource bundle is null > ------------------------------------------------------------ > > Key: SLING-6569 > URL: https://issues.apache.org/jira/browse/SLING-6569 > Project: Sling > Issue Type: Bug > Components: Extensions, Validation > Reporter: Oliver Lietz > Assignee: Oliver Lietz > Fix For: Validation 1.0.0 > > > Before: > {noformat} > [...] > 2017-03-02 15:39:42,933 ERROR [127.0.0.1 [1488465582809] POST > /validation/testing/fakeFolder1/resource HTTP/1.1] > o.a.s.e.i.SlingRequestProcessorImpl [SlingRequestProcessorImpl.java : 225] > service: Uncaught Throwable > java.lang.NullPointerException: null > at > org.apache.sling.validation.spi.DefaultValidationFailure.getMessage(DefaultValidationFailure.java:64) > at > org.apache.sling.validation.testservices.internal.ValidationPostResponse.doSend(ValidationPostResponse.java:63) > at > org.apache.sling.servlets.post.AbstractPostResponse.send(AbstractPostResponse.java:387) > at > org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:226) > [...] > {noformat} > After: > {noformat} > [...] > 2017-03-02 15:46:33,866 ERROR [127.0.0.1 [1488465993738] POST > /validation/testing/fakeFolder1/resource HTTP/1.1] > o.a.s.e.i.SlingRequestProcessorImpl [SlingRequestProcessorImpl.java : 225] > service: Uncaught Throwable > java.lang.NullPointerException: ResourceBundle must not be null > at > org.apache.sling.validation.spi.DefaultValidationFailure.getMessage(DefaultValidationFailure.java:65) > at > org.apache.sling.validation.testservices.internal.ValidationPostResponse.doSend(ValidationPostResponse.java:63) > at > org.apache.sling.servlets.post.AbstractPostResponse.send(AbstractPostResponse.java:387) > at > org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:226) > [...] > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)