You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Daniel Kasmeroglu (JIRA)" <ji...@apache.org> on 2014/10/18 00:13:34 UTC

[jira] [Commented] (TOMEE-1403) NPE in AetherBasedResolver if resolution of an artifact fails

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

Daniel Kasmeroglu commented on TOMEE-1403:
------------------------------------------

Added a pull request: https://github.com/costamojan/tomee/pull/7


> NPE in AetherBasedResolver if resolution of an artifact fails
> -------------------------------------------------------------
>
>                 Key: TOMEE-1403
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1403
>             Project: TomEE
>          Issue Type: Improvement
>    Affects Versions: 2.0.0
>            Reporter: Daniel Kasmeroglu
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: tomee-1403.patch
>
>
> When the maven repository fails to resolve the desired artifact it might return an _ArtifactResult_ without an _Artifact_. In this case the previous code will cause an NPE while returning the file. My change will generate an _IOException_ in that case.
> See: 
> https://kasisoft.com/stash/projects/TOMEE/repos/tomee/commits/6b9359360bd7cc5cef0adf385d3835e2cf64efaa



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