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 114343 - NPE in ExecutionService.run
Summary: NPE in ExecutionService.run
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Krauskopf
URL: http://statistics.netbeans.org/except...
Keywords: REGRESSION
: 114399 114578 115213 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-31 10:34 UTC by pzajac
Modified: 2007-09-11 09:43 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 2414


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2007-08-31 10:34:55 UTC
Build: NetBeans Ruby IDE 070827
VM: Java HotSpot(TM) Client VM, 1.5.0_03-b07
OS: Windows 2000, 5.0, x86
STACKTRACE: (first 10 lines)
java.lang.NullPointerException
        at org.netbeans.modules.ruby.rubyproject.execution.ExecutionService.run(ExecutionService.java:217)
        at org.netbeans.modules.ruby.rubyproject.execution.ExecutionService.rerun(ExecutionService.java:163)
        at org.netbeans.modules.ruby.rubyproject.execution.RerunAction.actionPerformed(RerunAction.java:98)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
        at java.awt.Component.processMouseEvent(Component.java:5488)
Comment 1 Jiri Skrivanek 2007-09-03 10:35:40 UTC
*** Issue 114399 has been marked as a duplicate of this issue. ***
Comment 2 Martin Krauskopf 2007-09-03 12:55:36 UTC
ExecutionService.java;
new revision: 1.9; previous revision: 1.8
Comment 3 Jiri Skrivanek 2007-09-04 09:55:24 UTC
*** Issue 114578 has been marked as a duplicate of this issue. ***
Comment 4 pzajac 2007-09-04 10:45:28 UTC
Duplicate was not detected correctly.
Comment 5 pzajac 2007-09-04 10:48:41 UTC
Jindro do you think that it's possible to detect this duplicate?
Comment 6 Jiri Skrivanek 2007-09-04 13:12:55 UTC
I suggest to merge the fix into release60_beta1 branch because once you get the exception you are not able to execute a
ruby file until restart of IDE. We can expect many duplicates and bad user's experience.

P.S. Please, file separate issue for logger functionality. 
Comment 7 Martin Krauskopf 2007-09-04 16:48:28 UTC
Agree. Will backport tomorrow morning (CET).
Comment 8 Martin Krauskopf 2007-09-05 08:07:13 UTC
I've sent to reviewers ML. (fixed in trunk, will change TM accordingly after integration to trunk)
Comment 9 Martin Krauskopf 2007-09-05 08:08:32 UTC
yup, should be "... after integration to beta1 branch)"
Comment 10 Martin Krauskopf 2007-09-06 08:16:33 UTC
Backported into beta1 branch.

projects/src/org/netbeans/modules/ruby/rubyproject/execution/ExecutionService.java;
new revision: 1.8.2.1; previous revision: 1.8
Comment 11 Jiri Skrivanek 2007-09-07 10:26:04 UTC
Verified in NB 6.0 Beta 1 (Build 200709070000).
Comment 12 Martin Krauskopf 2007-09-11 09:33:22 UTC
*** Issue 115213 has been marked as a duplicate of this issue. ***
Comment 13 Martin Krauskopf 2007-09-11 09:43:09 UTC
*** Issue 115213 has been marked as a duplicate of this issue. ***