[ https://issues.apache.org/jira/browse/SLING-5555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15162770#comment-15162770 ]
Oliver Lietz commented on SLING-5555: ------------------------------------- you should print a shirt for adaptTo() with issue on it ;) > Make error message more explicit when a @Source annotation contains an > invalid source identifier > ------------------------------------------------------------------------------------------------ > > Key: SLING-5555 > URL: https://issues.apache.org/jira/browse/SLING-5555 > Project: Sling > Issue Type: Improvement > Components: Extensions > Affects Versions: Sling Models Impl 1.2.6 > Reporter: Stefan Seifert > Assignee: Stefan Seifert > Priority: Minor > Labels: models > Fix For: Sling Models Impl 1.2.8 > > > it is possible to use the @Inject annotation in combination with @Source and > specifying a injection source via its identifier as string. > if this string is invalid currently a NPE is thrown internally and logged as > warning. instead of the NPE another exception should be thrown including an > error message containing the invalid source id to hint what is the real > problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)