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 262131 - NullPointerException at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.doWork
Summary: NullPointerException at org.netbeans.modules.dlight.terminal.action.TerminalS...
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-17 22:48 UTC by Exceptions Reporter
Modified: 2016-05-30 15:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 224087


Attachments
stacktrace (777 bytes, text/plain)
2016-05-17 22:48 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-05-17 22:48:49 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02
OS: Windows 10

User Comments:
GUEST: I just had cygwin setup on my computer and then i tried to Build and Run a Hello, world Project. and then that happened




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.doWork(TerminalSupportImpl.java:323)
   at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.access$000(TerminalSupportImpl.java:153)
   at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1$1.run(TerminalSupportImpl.java:160)
   at org.netbeans.modules.dlight.terminal.action.TerminalSupportImpl$1.run(TerminalSupportImpl.java:174)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
Comment 1 Exceptions Reporter 2016-05-17 22:48:51 UTC
Created attachment 159789 [details]
stacktrace
Comment 2 ilia 2016-05-30 15:22:19 UTC
NPE:

shell = ... // (init shell)
if (shell.endsWith(...)) { ... }

Seems that user run the IDE while cygwin installation was still in proccess. (key in registry exists -> IDE detected cygwin -> but no bash.exe installed yet).

Relaunching IDE will solve the problem. Please reopen if it's still valid.