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 - NullPointerException: The dir parameter cannot be null
Summary: NullPointerException: The dir parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Jancura
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 08:56 UTC by krezelokdaniel
Modified: 2009-05-18 08:34 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 150537


Attachments
stacktrace (3.23 KB, text/plain)
2009-05-04 08:56 UTC, krezelokdaniel
Details
stacktrace (3.16 KB, text/plain)
2009-05-04 17:37 UTC, theshadow27
Details
stacktrace (3.03 KB, text/plain)
2009-05-05 14:51 UTC, cbulcu
Details
stacktrace (3.16 KB, text/plain)
2009-05-05 21:36 UTC, theshadow27
Details
stacktrace (3.16 KB, text/plain)
2009-05-05 21:40 UTC, theshadow27
Details
stacktrace (3.25 KB, text/plain)
2009-05-05 22:18 UTC, ibnsaeed
Details
stacktrace (3.03 KB, text/plain)
2009-05-08 23:19 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
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