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 32792 - A NullPointerException thrown when finishing the second debugging session
Summary: A NullPointerException thrown when finishing the second debugging session
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: -S1S-
Hardware: Sun SunOS
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-10 14:06 UTC by Jan Lahoda
Modified: 2003-04-15 10:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test class. (371 bytes, text/plain)
2003-04-10 14:07 UTC, Jan Lahoda
Details
Stack trace of the NullPointerException. (633 bytes, text/plain)
2003-04-10 14:08 UTC, Jan Lahoda
Details
patch file (12.82 KB, application/octet-stream)
2003-04-11 10:19 UTC, Jan Jancura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2003-04-10 14:06:39 UTC
Nevada 030408, JDK1.4.1_02, MDI.
1. Download attached test case.
2. Mount it in the IDE (no package).
3. Start debugging of this class (Debug/Start
Session/Run in Debugger) (do not set any
breakpoints, the testcase is an infinite loop).
4. Start it again. Choose "Start New Session".
5. In the sessions view, choose "Finish" on the
second session. Attached NullPointerException will
occur.

Note: Although the steps to reproduce run the same
class twice, it is not necessary. The same problem
occurs when debugging two different applications,
even if one or both of them are "Attached".
Comment 1 Jan Lahoda 2003-04-10 14:07:31 UTC
Created attachment 9843 [details]
Test class.
Comment 2 Jan Lahoda 2003-04-10 14:08:32 UTC
Created attachment 9844 [details]
Stack trace of the NullPointerException.
Comment 3 Jan Jancura 2003-04-11 10:16:56 UTC
fixed in trunk
Comment 4 Jan Jancura 2003-04-11 10:19:34 UTC
Created attachment 9866 [details]
patch file
Comment 5 Jan Chalupa 2003-04-11 11:16:33 UTC
Can you provide a diff file for review? Thanks.
Comment 6 Marek Grummich 2003-04-11 13:19:16 UTC
Verified - I used an attached patch in the S1S build 030409 and it see
ms that this problem disappeared.
Comment 7 Jan Jancura 2003-04-11 13:58:24 UTC
fix is trivial -> merging to release35

RCS file:
/cvs/debuggercore/src/org/netbeans/modules/debugger/support/IOManager.java,v
retrieving revision 1.18
diff -r1.18 IOManager.java
264,265c264,267
<                 debuggerIO.setOutputVisible (visible);
<                 processIO.setOutputVisible (visible);
---
>                 if (debuggerIO != null)
>                     debuggerIO.setOutputVisible (visible);
>                 if (processIO != null)
>                     processIO.setOutputVisible (visible);
Comment 8 Jan Lahoda 2003-04-15 10:38:06 UTC
Verified in Nevada 030414.