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 71703 - NullPointerException is thrown when a localized property have no value in the property editor
Summary: NullPointerException is thrown when a localized property have no value in the...
Status: RESOLVED DUPLICATE of bug 69257
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:
Depends on:
Blocks:
 
Reported: 2006-01-21 15:42 UTC by naoki
Modified: 2006-10-23 16:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description naoki 2006-01-21 15:42:12 UTC
NullPointerException is thrown when a localized property have no value that 
exists default property in the property editor.
For example, a.properties file have two keys, "aa" and "bb", but a_ja.properties 
file have only one key, "aa". The key of "bb" is not in a_ja.properties.
Open a.properties in property editor, and select a blank cell for a "bb" key of 
ja locale, then NullPointerException is thrown.

--a.properties--
aa=test
bb=value

--a_ja.properties--
aa=\u3042

java.lang.NullPointerException
	at org.netbeans.modules.properties.BundleEditPanel.
updateSelection(BundleEditPanel.java:176)
	at org.netbeans.modules.properties.BundleEditPanel.
access$700(BundleEditPanel.java:48)
[catch] at org.netbeans.modules.properties.BundleEditPanel$3$1.
run(BundleEditPanel.java:127)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at java.awt.EventDispatchThread.
pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.
pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 naoki 2006-01-21 15:46:13 UTC
Sorry, it is fixed in RC2.
Comment 2 naoki 2006-01-25 15:11:29 UTC
Sorry again, I am mistaken.
The exception is only hidden. It is still thrown in RC2.
Comment 3 Marian Petras 2006-07-03 11:57:51 UTC
This is a duplicate of bug #69257 (already fixed in the trunk, i.e. it will be
fixed in NB 6.0).

*** This issue has been marked as a duplicate of 69257 ***