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

Summary: NullPointerException at org.netbeans.modules.properties.Util.getLocaleSuffix
Product: utilities Reporter: ytn01
Component: PropertiesAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222147
Attachments: stacktrace

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