You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "APF (JIRA)" <ji...@apache.org> on 2010/09/16 15:20:32 UTC

[jira] Created: (FELIX-2600) NPE in goals wrap and bundleall if "project already processed"

NPE in goals wrap and bundleall if  "project already processed"
---------------------------------------------------------------

                 Key: FELIX-2600
                 URL: https://issues.apache.org/jira/browse/FELIX-2600
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-2.1.0
         Environment: win32 maven 3 beta 3
            Reporter: APF
            Priority: Minor


Trying to wrap dependencies as bundle via wrap or bundleall will result in a NPE.
See current trunk:
http://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundleAllPlugin.java?revision=925279&view=markup

line 182, 188
179 	 if ( alreadyBundled( project.getArtifact() ) )
180 	{
181 	getLog().debug( "Ignoring project already processed " + project.getArtifact() );
182 	return null;
183 	} 

results in NPE at:

579 	 protected void logDuplicatedPackages( BundleInfo bundleInfo )
580 	{
581 	Map duplicatedExports = bundleInfo.getDuplicatedExports(); 

A simple  null check did it for me. I hope more context is not necessary since it looks quite obvious.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.