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 157269 - [65cat] NullPointerException at org.netbeans.modules.i18n.java.JavaI18nSupport.getDefaultI18nString
Summary: [65cat] NullPointerException at org.netbeans.modules.i18n.java.JavaI18nSuppor...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-21 19:29 UTC by Michel Graciano
Modified: 2009-02-19 20:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 145432


Attachments
stacktrace (3.08 KB, text/plain)
2009-01-21 19:29 UTC, Michel Graciano
Details
stacktrace (2.70 KB, text/plain)
2009-01-21 19:32 UTC, Michel Graciano
Details
Patch (3.09 KB, patch)
2009-01-22 08:49 UTC, Alexey Butenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Graciano 2009-01-21 19:29:06 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.27-11-generic, i386

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.i18n.java.JavaI18nSupport.getDefaultI18nString(JavaI18nSupport.java:157)
        at org.netbeans.modules.i18n.I18nSupport.getDefaultI18nString(I18nSupport.java:146)
        at org.netbeans.modules.i18n.I18nManager.getDialog(I18nManager.java:343)
        at org.netbeans.modules.i18n.I18nManager.internationalize(I18nManager.java:133)
        at org.netbeans.modules.i18n.I18nAction.performAction(I18nAction.java:94)
        at org.openide.util.actions.NodeAction.performAction(NodeAction.java:289)
Comment 1 Michel Graciano 2009-01-21 19:29:18 UTC
Created attachment 76113 [details]
stacktrace
Comment 2 Michel Graciano 2009-01-21 19:32:08 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Linux, 2.6.27-11-generic, i386

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.i18n.java.JavaI18nSupport.getDefaultI18nString(JavaI18nSupport.java:157)
        at org.netbeans.modules.i18n.I18nSupport.getDefaultI18nString(I18nSupport.java:146)
        at org.netbeans.modules.i18n.I18nManager.getDialog(I18nManager.java:343)
        at org.netbeans.modules.i18n.I18nManager.internationalize(I18nManager.java:133)
        at org.netbeans.modules.i18n.I18nAction.performAction(I18nAction.java:94)
        at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
Comment 3 Michel Graciano 2009-01-21 19:32:11 UTC
Created attachment 76114 [details]
stacktrace
Comment 4 Michel Graciano 2009-01-21 19:33:53 UTC
To reproduce the problem, just try to call Tools > Internationalization > Internationalize for a class file which class
root is not mapped in the project. For example, using Files window.
Comment 5 Alexey Butenko 2009-01-22 08:49:07 UTC
Created attachment 76122 [details]
Patch
Comment 6 Alexey Butenko 2009-01-22 09:19:19 UTC
changeset 2f2f64799986