This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 164363

Summary: NullPointerException: The dir parameter cannot be null
Product: java Reporter: krezelokdaniel <krezelokdaniel>
Component: ProjectAssignee: Jan Jancura <jjancura>
Status: RESOLVED FIXED    
Severity: blocker CC: cbulcu, hdhero, ibnsaeed, theshadow27
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=150537
Issue Type: DEFECT Exception Reporter: 150537
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description krezelokdaniel 2009-05-04 08:56:25 UTC
Build: NetBeans IDE Dev (Build 200905040201)
VM: Java HotSpot(TM) Client VM, 15.0-b05, Java(TM) SE Runtime Environment, 1.7.0-ea-b55
OS: SunOS, 5.10, x86

User Comments:
krezelokdaniel: When I want to execute non-executable Java file.



Stacktrace: 
java.lang.NullPointerException: The dir parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:250)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:232)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.setupTestSingle(J2SEActionProvider.java:821)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:677)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378)
Comment 1 krezelokdaniel 2009-05-04 08:56:31 UTC
Created attachment 81451 [details]
stacktrace
Comment 2 theshadow27 2009-05-04 17:37:12 UTC
Build: NetBeans IDE Dev (Build 200905011401)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Pressed "shift" + "f6" to run, on a file without a main method

Stacktrace: 
java.lang.NullPointerException: The dir parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:250)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:232)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.setupTestSingle(J2SEActionProvider.java:821)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:677)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378)
Comment 3 theshadow27 2009-05-04 17:37:21 UTC
Created attachment 81484 [details]
stacktrace
Comment 4 cbulcu 2009-05-05 14:51:36 UTC
Build: NetBeans IDE Dev (Build 200905050201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException: The dir parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:250)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:232)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.setupTestSingle(J2SEActionProvider.java:821)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:677)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378)
Comment 5 cbulcu 2009-05-05 14:51:41 UTC
Created attachment 81563 [details]
stacktrace
Comment 6 theshadow27 2009-05-05 21:36:41 UTC
Build: NetBeans IDE Dev (Build 200905050201)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Ran a Java file without a main method


Stacktrace: 
java.lang.NullPointerException: The dir parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:250)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:232)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.setupTestSingle(J2SEActionProvider.java:821)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:677)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378)
Comment 7 theshadow27 2009-05-05 21:36:46 UTC
Created attachment 81588 [details]
stacktrace
Comment 8 theshadow27 2009-05-05 21:40:29 UTC
Build: NetBeans IDE Dev (Build 200905050201)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Repeatable. 

Stacktrace: 
java.lang.NullPointerException: The dir parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:250)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:232)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.setupTestSingle(J2SEActionProvider.java:821)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:677)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378)
Comment 9 theshadow27 2009-05-05 21:40:34 UTC
Created attachment 81589 [details]
stacktrace
Comment 10 ibnsaeed 2009-05-05 22:18:32 UTC
Build: NetBeans IDE Dev (Build 200905050201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
Tried to run the following code

import stanford.karel.*;

public class CheckerboardKarel extends SuperKarel {

	// You fill in this part

}

Stacktrace: 
java.lang.NullPointerException: The dir parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:250)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:232)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.setupTestSingle(J2SEActionProvider.java:821)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:677)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378)
Comment 11 ibnsaeed 2009-05-05 22:18:43 UTC
Created attachment 81593 [details]
stacktrace
Comment 12 Exceptions Reporter 2009-05-08 23:19:07 UTC
Build: NetBeans IDE Dev (Build 200905080201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException: The dir parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:250)
        at org.apache.tools.ant.module.api.support.ActionUtils.antIncludesList(ActionUtils.java:232)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.setupTestSingle(J2SEActionProvider.java:821)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider.getTargetNames(J2SEActionProvider.java:677)
        at org.netbeans.modules.java.j2seproject.J2SEActionProvider$4.run(J2SEActionProvider.java:378)
Comment 13 Exceptions Reporter 2009-05-08 23:19:21 UTC
Created attachment 81838 [details]
stacktrace
Comment 14 Jan Jancura 2009-05-11 13:29:06 UTC
Reproducible.
Comment 15 Jan Jancura 2009-05-11 15:51:53 UTC
fixed in b5ca94fd3809
Comment 16 Quality Engineering 2009-05-12 07:42:32 UTC
Integrated into 'main-golden', will be available in build *200905120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b5ca94fd3809
User: Jan Jancura <jjancura@netbeans.org>
Log: #164363: NullPointerException: The dir parameter cannot be null