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 175881 - [68cat] NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Summary: [68cat] NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: I18N (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Victor Vasilyev
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-01 19:33 UTC by ravindranathakila
Modified: 2009-11-09 05:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 161326


Attachments
stacktrace (6.25 KB, text/plain)
2009-11-01 19:33 UTC, ravindranathakila
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ravindranathakila 2009-11-01 19:33:34 UTC
This issue was originally marked as duplicate of issue 142566, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE 6.8 Beta (Build 200910212001)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows XP, 5.1, x86

User Comments:
ravindranathakila: I am inside the i18n wizard setting values

sunbiz: Trying to select bundle name using the internationalization qizard



Stacktrace: 
java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
        at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:94)
        at org.netbeans.modules.i18n.SelectorUtils.bundlesNode(SelectorUtils.java:175)
        at org.netbeans.modules.i18n.SelectorUtils.selectOrCreateBundle(SelectorUtils.java:356)
        at org.netbeans.modules.i18n.PropertyPanel.browseButtonActionPerformed(PropertyPanel.java:554)
        at org.netbeans.modules.i18n.PropertyPanel.access$700(PropertyPanel.java:91)
        at org.netbeans.modules.i18n.PropertyPanel$8.actionPerformed(PropertyPanel.java:425)
Comment 1 ravindranathakila 2009-11-01 19:33:40 UTC
Created attachment 90387 [details]
stacktrace
Comment 2 Victor Vasilyev 2009-11-09 05:27:26 UTC
The problem is in a successor implementation (or successorS ?) of the abstract class
org.netbeans.modules.i18n.ResourceHolder whose 
method createTemplate(Class) returns null, but not a valid pointer to the template data object.

I've added a special code to find all the buggy implementations. This code will throw NPE with detailed message about
the buggy implementation.

Fixed in the main trunk
http://hg.netbeans.org/main/rev/80b38845d00e