Devs,

After changing the packaging of a dotnet-library to dotnet-module and
recompiling, I'm getting the following error during the test compilation
phase:

[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at
npanday.executable.impl.CompilerContextImpl.getDirectModuleDependencies(CompilerContextImpl.java:165)

A little bit of detective work revealed
that artifactContext.getNetModulesFor( project.getArtifact() ) is returning
null rather than an empty list, triggering the NPE.

The relevant code in ArtifactContextImpl seems to imply the situation is
temporary:

    //TODO: support temporarily removed
    public List<Artifact> getNetModulesFor( Artifact artifact )
        throws ArtifactException
    {
        if ( artifact == null )
        {
            throw new ArtifactException( "NPANDAY-000-002: Cannot get .NET
modules dependencies of a null artifact" );
        }
        List<ArtifactMatchPolicy> matchPolicies = new
ArrayList<ArtifactMatchPolicy>();
        matchPolicies.add( new NetModuleMatchPolicy() );
        return null;
        //return getDirectDependenciesFor( artifact, matchPolicies );
    }

Out of curiousity, what was the rationale for removing it and has that issue
been addressed, allowing us to re-enable the feature?

tc,
-john
-- 
>|< Kaazing Corporation >|<
John Fallows | CTO | +1.650.960.8148
444 Castro St, Suite 1100 | Mountain View, CA 94041, USA

Reply via email to