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 7836 - NullPointerException from superclass combo
Summary: NullPointerException from superclass combo
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-09 16:17 UTC by Petr Slegr
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.99 KB, text/plain)
2000-10-09 16:37 UTC, Petr Slegr
Details
proposed patch (6.65 KB, patch)
2001-07-20 20:33 UTC, Tomas Hurka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Slegr 2000-10-09 16:17:36 UTC
[1117]

In first stage of Java wizard there choose an item in superclass combo while
holding CTRL key. NullPointerException will occurr.
Comment 1 Petr Slegr 2000-10-09 16:37:59 UTC
Created attachment 186 [details]
stack trace
Comment 2 Jan Becicka 2000-11-01 14:46:59 UTC
[1135] Verified
Comment 3 Jan Becicka 2000-11-24 15:41:59 UTC
[1159c] Reopened
Comment 4 Tomas Hurka 2001-01-23 09:35:59 UTC
getSelectedItem method of javax.swing.JComboBox returns null when user holds
CTRL modifier. It is a strange behavior, probably bug in Swing. To correct this
bug explicit test for null was added to all getSelectedItem methods. Attachement
with proposed patch, which will also correct some depricated API, follows this
comment.
Comment 5 Tomas Hurka 2001-01-23 09:37:59 UTC
Created attachment 486 [details]
proposed patch
Comment 6 Jan Becicka 2001-01-31 14:39:59 UTC
[010130_1] Verified
Comment 7 Quality Engineering 2003-07-01 13:20:30 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.