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 Dev (Build 201211090001) VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b06 OS: Linux User Comments: tbrunhoff: Debug session... GUEST: writing a program in c to print hello Stacktrace: java.lang.NullPointerException at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1$5$1.run(NativeExecutionService.java:279) at org.netbeans.modules.nativeexecution.support.NativeTaskExecutorService$2.run(NativeTaskExecutorService.java:82) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Created attachment 128481 [details] stacktrace
Created attachment 128487 [details] Proposed fix
After some discussion with Ivan it was decided to fix this bug in two places. - in the terminal emulator (wrong synchronization) - in the ProjectActionSupport (wrong API usage) The problem is that in the ProjectActionSupport it is possible that we close IO before we get Out (to close it once again from the other thread ;-[]) right after printing-out the exit status. As a first step I did some refactoring of IO Tabs management: http://hg.netbeans.org/cnd-main/rev/b9c157f200b8
Integrated into 'main-golden', will be available in build *201212050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b9c157f200b8 User: Andrew Krasny <akrasny@netbeans.org> Log: Bug #222859 - NullPointerException at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1$5$1.run Refactored ProjectActionSupport - extracted IOTabsController to manage all tabs-related logic.
Andrew, why it is not in FIXED state???
Because it is not fixed yet ;) A good fix would be to have a control over many of threads involved in a simple run action - but this requires some refactoring...
Changeset that fixes NPE: http://hg.netbeans.org/cnd-main/rev/81bd2b0ce660
http://netbeans.org/bugzilla/show_bug.cgi?id=223376 was filed against the first problem.
Integrated into 'main-golden', will be available in build *201212070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/81bd2b0ce660 User: Andrew Krasny <akrasny@netbeans.org> Log: Bug #222859 - NullPointerException at org.netbeans.modules.nativeexecution.api.execution.NativeExecutionService$1$5$1.run