maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sejal Patel (JIRA)" <j...@codehaus.org>
Subject [jira] Updated: (MASSEMBLY-277) NullPointerException
Date Wed, 30 Jan 2008 20:20:57 GMT

     [ http://jira.codehaus.org/browse/MASSEMBLY-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sejal Patel updated MASSEMBLY-277:
----------------------------------

    Attachment: npe-patch.txt

Patch to fix the NPE error.

> NullPointerException
> --------------------
>
>                 Key: MASSEMBLY-277
>                 URL: http://jira.codehaus.org/browse/MASSEMBLY-277
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>    Affects Versions: 2.2-beta-1
>            Reporter: Sejal Patel
>            Priority: Minor
>         Attachments: npe-patch.txt
>
>
> org.apache.maven.plugin.assembly.archive.task.AddFileSetsTask line 76 
> is a NullPointerException spot (which bit me when I tried to make a new plugin that extended
the current abstract one). Line 78 checks if project is null and retrieves the project. However,
line 76 uses the project before the check/assignment is done. Recommend moving line 76 to
be after the line 78 check. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message