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.
Build: NetBeans IDE 8.1 (Build 201510222201) VM: Java HotSpot(TM) Client VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17 OS: Windows XP User Comments: GUEST: validation tool collection on local host problem. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.nativeexecution.NativeProcessInfo.setArguments(NativeProcessInfo.java:202) at org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.setArguments(NativeProcessBuilder.java:306) at org.netbeans.modules.cnd.cncppunit.LibraryChecker.isLibraryAvailable(LibraryChecker.java:116) at org.netbeans.modules.cnd.cncppunit.editor.filecreation.TestLibChecker.run(TestLibChecker.java:93) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
Created attachment 158609 [details] stacktrace
Some results after investigation of this bug: In LibraryChecker.isLibraryAvailable the dummySourceFile variable seems to be null. It may be null after calling the convertToCompilerPath method, which returns null in case the activeShell is null if we are converting to/from Cygwin path. Preliminary conclusion: Cygwin paths in a toolchain may be corrupted.
Able to reproduce the exception: happens if WindowsSupport.findShell returns null. It seems this exception can also occur when toolchain validates for too long (and both users reported this exception complain about long validation). In this case currentShell is just not initialized yet and we get an NPE.
Integrated into 'main-silver', will be available in build *201707201608* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/6b64aaf42e19 User: Ilia Gromov <ilia@netbeans.org> Log: Fixed #258110 - NullPointerException at org.netbeans.modules.nativeexecution.NativeProcessInfo.setArguments