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 257594 - NullPointerException at org.netbeans.modules.properties.Util.getLocaleSuffix
Summary: NullPointerException at org.netbeans.modules.properties.Util.getLocaleSuffix
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-15 20:06 UTC by ytn01
Modified: 2016-01-15 20:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222147


Attachments
stacktrace (3.96 KB, text/plain)
2016-01-15 20:06 UTC, ytn01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ytn01 2016-01-15 20:06:55 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.72-b05, Java(TM) SE Runtime Environment, 1.8.0_72-ea-b05
OS: Windows 7

User Comments:
ytn01: I was working on Java Web Application project, one of the packages contains localization property files with a non ".properties" extension. (But NetBeans was able to identify them as locale files)
I right clicked on one of such files and clicked on "customize" from the context menu.
Exception happened.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.properties.Util.getLocaleSuffix(Util.java:157)
   at org.netbeans.modules.properties.LocaleNodeCustomizer.getLocale(LocaleNodeCustomizer.java:130)
   at org.netbeans.modules.properties.BundleNodeCustomizer.retrieveLocales(BundleNodeCustomizer.java:106)
   at org.netbeans.modules.properties.BundleNodeCustomizer.<init>(BundleNodeCustomizer.java:87)
   at org.netbeans.modules.properties.PropertiesDataNode.getCustomizer(PropertiesDataNode.java:177)
   at org.openide.nodes.FilterNode.getCustomizer(FilterNode.java:819)
Comment 1 ytn01 2016-01-15 20:06:56 UTC
Created attachment 158150 [details]
stacktrace