[mevenide-dev] [jira] Closed: (MEVENIDE-480) NPE when executing any goal

"Milos Kleint (JIRA)" <jira-yCVjj/[email protected]> Fri, 29 Oct 2010 01:34:12 -0500 (CDT)
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.devel
Message-ID <16139248.4063.1288334052720.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/MEVENIDE-480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Milos Kleint closed MEVENIDE-480.
---------------------------------

    Resolution: Won't Fix

the maven1 netbeans integration is discontinued for a long time, just closing the issues.

> NPE when executing any goal
> ---------------------------
>
>                 Key: MEVENIDE-480
>                 URL: http://jira.codehaus.org/browse/MEVENIDE-480
>             Project: mevenide
>          Issue Type: Bug
>          Components: mevenide-netbeans
>    Affects Versions: NB_1.0
>         Environment: MacOS 10.4.8, Java 5.0, NetBeans 5.5
>            Reporter: Guy Rixon
>            Assignee: Milos Kleint
>             Fix For: NB_1.1
>
>
> When I try to execute any goal in my Maven project, I get an NPE from Netbeans:
> java.lang.NullPointerException
> 	at org.mevenide.netbeans.project.exec.MavenJavaExecutor.createProcess(MavenJavaExecutor.java:138)
> 	at org.mevenide.netbeans.project.exec.MavenJavaExecutor.run(MavenJavaExecutor.java:283)
> [catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)
> Lines 135..138 in MavenJavaExecutor are
> File lib = new File(mavenHome, "lib");
> String forehead = null;
> File[] lbs = lib.listFiles();
>         for (int i = 0; i < lbs.length; i++) {
> so I think that lbs is coming out null because lib doesn't refer to an actual directory. Needs a check in the code to avoid the NPE.
> lib is probably wrong because mavenHome is wrong. The code doesn't check that mavenHome actually exists. I've had serious grief with getting Mevenide to recognize the MAVEN_HOME setting since upgrading from NB5.0 to NB5.5, so there might be another bug around here somewhere. 

-- 
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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email