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 41476 - A NullPointerExceptions thrown from override methods
Summary: A NullPointerExceptions thrown from override methods
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-29 16:35 UTC by Jan Lahoda
Modified: 2010-04-29 09:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The first NullPointerException. (916 bytes, text/plain)
2004-03-29 16:37 UTC, Jan Lahoda
Details
The second NullPointerException. (2.48 KB, text/plain)
2004-03-29 16:38 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2004-03-29 16:35:38 UTC
NB3.6, 200403251830, with the debugger patch for
#41314. JDK1.4.2_03.

1. Start the debugging for
examples.advanced.MemoryView (comes with the test
applications for debugger, see
http://debugger.netbeans.org).
2. Create a breakpoint at line 98.
3. Open the Classes view.
4. Go into the Classes view.
5. Select examples.advanced.MemoryView
6. Right-Click and choose Tools/Override methods
7. A dialog is opened and the first attached
NullPointerException is thrown.
8. Close the dialog, select
examples.advanced.MemoryView.MemoryView$1.
9. Right-Click and choose Tools/Override methods
10. A dialog is opened (no NPE). Select some
methods and click OK.
11. The second attached NullPointerException is
thrown.

I guess that the debugger tries to filter out
actions from the class node, but forgets for the
Tools/Override methods (and Tools/JUnit Tests
which are there two).
Comment 1 Jan Lahoda 2004-03-29 16:37:01 UTC
Created attachment 14190 [details]
The first NullPointerException.
Comment 2 Jan Lahoda 2004-03-29 16:38:21 UTC
Created attachment 14192 [details]
The second NullPointerException.
Comment 3 Jan Jancura 2004-04-05 14:53:05 UTC
I have file these NPEs to my collectiom. Really beautifull sample!
Comment 4 Jan Jancura 2004-05-31 14:37:31 UTC
looks like not by piece of cake
Comment 5 Martin Matula 2004-07-28 13:22:47 UTC
What's the state of this issue? Is it (going to be) fixed in debugger?
Jan's comments do not make any sense to me, sorry.
Comment 6 Jan Jancura 2004-07-28 14:01:15 UTC
this piece of code has been removed - fixed in trunk.
Comment 7 Quality Engineering 2010-04-29 09:17:12 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.