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.
Summary: | NullPointerException at org.netbeans.modules.nativeexecution.NativeProcessInfo.setArguments | ||
---|---|---|---|
Product: | cnd | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | execution | Assignee: | ilia |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Issue Type: | DEFECT | Exception Reporter: | 222668 |
Attachments: | stacktrace |
Description
Exceptions Reporter
2016-02-23 09:47:38 UTC
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 |