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 65504 - NPE when ctrl-clicking in New Locale dialog
Summary: NPE when ctrl-clicking in New Locale dialog
Status: VERIFIED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2005-09-30 10:13 UTC by Max Sauer
Modified: 2005-10-26 08:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception stack trace (5.27 KB, text/plain)
2005-09-30 10:14 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Sauer 2005-09-30 10:13:34 UTC
When Ctrl-cliking a selected item in New Locale dialog, following exception is
thrown:

java.lang.NullPointerException
	at
org.netbeans.modules.properties.LocalePanel.supportedListValueChanged(LocalePanel.java:456)
	at org.netbeans.modules.properties.LocalePanel.access$300(LocalePanel.java:39)
	at org.netbeans.modules.properties.LocalePanel$8.valueChanged(LocalePanel.java:404)
	at javax.swing.JList.fireSelectionValueChanged(JList.java:1317)
...
(whole stack trace attached)

Steps to reproduce:
----------------------
1) In a project, add a properties file
2) Right-click it inside Explorer and select 'Add Locale...' from the menu
3) Select an item.
4) try to unselect it via ctrl-click
--> exception

[5.0dev 200509281800, JDK 1.5.0_05, solaris 10/sparc]
Comment 1 Max Sauer 2005-09-30 10:14:48 UTC
Created attachment 25349 [details]
exception stack trace
Comment 2 Marian Petras 2005-10-21 15:38:29 UTC
Confirmed, accepted.

Tested with build 20051019, JDK 1.5.0_05, Linux @ x86.
Comment 3 Marian Petras 2005-10-24 17:05:37 UTC
Fixed in the trunk.

The diff (trivial) is self-explanatory.

Modified file:
    properties/src/org/netbeans/modules/properties/LocalePanel.java   (1.14)

Diff:
http://properties.netbeans.org/source/browse/properties/src/org/netbeans/modules/properties/LocalePanel.java?r1=1.13&r2=1.14&diff_format=u
Comment 4 Max Sauer 2005-10-26 08:19:11 UTC
Verified in 200510251800.