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 182294 - NPE when some .xsd files are used
Summary: NPE when some .xsd files are used
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: _ alexpetrov
URL:
Keywords:
Depends on: 181321
Blocks:
  Show dependency tree
 
Reported: 2010-03-18 11:55 UTC by _ alexpetrov
Modified: 2010-03-19 05:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
XML schema (zzz.xsd) (596 bytes, text/plain)
2010-03-18 11:57 UTC, _ alexpetrov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexpetrov 2010-03-18 11:55:34 UTC
1. Start NB 6.9
2. Install SOA Plugin ("XML Schema and WSDL").
3. Open the attached zzz.xsd ("Schema" view should be selected).
4. Select the 2nd item "Attributes" in the 1st column.
   The item "focus" will appear in the 2nd column.
5. Select the item "focus" in the 2nd column.
   Click the toolbar button "Design".

Result (the console output):
SEVERE [global]
java.lang.NullPointerException
        at org.netbeans.modules.xml.schema.ui.nodes.schema.LocalSimpleTypeNode.getSuperDefinition(LocalSimpleTypeNode.java:80)
        at org.netbeans.modules.xml.schema.ui.nodes.categorized.AdvancedLocalSimpleTypeNode.getHtmlDisplayName(AdvancedLocalSimpleTypeNode.java:301)
        at org.openide.nodes.FilterNode.getHtmlDisplayName(FilterNode.java:787)
        at org.openide.explorer.view.VisualizerNode.getHtmlDisplayName(VisualizerNode.java:535)
        at org.openide.explorer.view.NodeRenderer.getListCellRendererComponent(NodeRenderer.java:160)
        at org.netbeans.modules.xml.xam.ui.column.ColumnListCellRenderer.getListCellRendererComponent(ColumnListCellRenderer.java:67)
Comment 1 _ alexpetrov 2010-03-18 11:57:21 UTC
Created attachment 95363 [details]
XML schema (zzz.xsd)
Comment 2 _ alexpetrov 2010-03-18 13:00:49 UTC
Fixed in trunk:   http://hg.netbeans.org/main/rev/7eb84d83fe7e
Fixed in gfesb23: http://hg-soabi.stc.com/gfesbv23/rev/af2e2c41e4b6
Comment 3 Quality Engineering 2010-03-19 05:15:15 UTC
Integrated into 'main-golden', will be available in build *201003190200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/7eb84d83fe7e
User: Alex Petrov <alexpetrov@netbeans.org>
Log: Fix for issue [#182294]. NPE when some .xsd files are used.