You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2015/01/30 12:02:34 UTC

[jira] [Commented] (SLING-4373) Calling ModelFactory.createModel with a null parameter for the adaptable leads to an InvalidAdaptableException

    [ https://issues.apache.org/jira/browse/SLING-4373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298500#comment-14298500 ] 

Konrad Windszus commented on SLING-4373:
----------------------------------------

Fixed in rev. 1655986

> Calling ModelFactory.createModel with a null parameter for the adaptable leads to an InvalidAdaptableException
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-4373
>                 URL: https://issues.apache.org/jira/browse/SLING-4373
>             Project: Sling
>          Issue Type: Improvement
>    Affects Versions: Sling Models Impl 1.2.0
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>             Fix For: Sling Models Impl 1.2.0
>
>
> This is confusing. Instead an IllegalArgumentException should be thrown in case either of both parameters are null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)