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 243564 - NullPointerException at java.io.File.<init>
Summary: NullPointerException at java.io.File.<init>
Status: REOPENED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-04 13:19 UTC by gbivins
Modified: 2017-05-06 01:58 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208926


Attachments
stacktrace (386 bytes, text/plain)
2014-04-04 13:19 UTC, gbivins
Details
stacktrace (386 bytes, text/plain)
2017-05-06 01:58 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gbivins 2014-04-04 13:19:44 UTC
This bug was originally marked as duplicate of bug 239540, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132
OS: Windows 7

User Comments:
gbivins: building maven project

javydreamercsw: After changing the local repository on maven's settings.xml.




Stacktrace: 
java.lang.NullPointerException
   at java.io.File.<init>(File.java:360)
   at org.netbeans.modules.maven.apisupport.CoSApplicationLateBoundChecker.checkRunConfig(CoSApplicationLateBoundChecker.java:132)
   at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:159)
   at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Comment 1 gbivins 2014-04-04 13:19:46 UTC
Created attachment 146553 [details]
stacktrace
Comment 2 Milos Kleint 2014-04-07 12:25:59 UTC
http://hg.netbeans.org/core-main/rev/8cd34accaa50

I don't fully understand why the null exception appears so I've added an assert next to the fix, so those with asserts on will see another exception here until I understand the problem :)
Comment 3 Quality Engineering 2014-04-08 06:09:38 UTC
Integrated into 'main-silver', will be available in build *201404080419* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8cd34accaa50
User: Milos Kleint <mkleint@netbeans.org>
Log: #243564 npe check
Comment 4 Mattdje 2014-07-08 20:38:09 UTC
Still occurs with the latest nightly build (NetBeans IDE Build 201407080001) on Windows 8.

When trying to execute my NBP application, I get the following NPE:

java.lang.NullPointerException
	at java.io.File.<init>(File.java:360)
	at org.netbeans.modules.maven.apisupport.CoSApplicationLateBoundChecker.checkRunConfig(CoSApplicationLateBoundChecker.java:133)
	at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:162)
[catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)

Notes: building the application works fine

Product Version         = NetBeans IDE Dev (Build 201407080001) (#d5f5bf8ec3be)
Operating System        = Windows 8 version 6.2 running on amd64
Java; VM; Vendor        = 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02; Oracle Corporation
Runtime                 = Java(TM) SE Runtime Environment 1.8.0_05-b13
Comment 5 Exceptions Reporter 2017-02-13 12:21:24 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=208926
Comment 6 Exceptions Reporter 2017-05-06 01:58:16 UTC
Created attachment 164264 [details]
stacktrace

<Forne?a uma descri??o do problema ou as etapas a serem reproduzidas>