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 84306 - NPE on opening of broken schema
Summary: NPE on opening of broken schema
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 14:53 UTC by kozlov
Modified: 2006-09-07 12:04 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2006-09-06 14:53:20 UTC
Reproduced in build 060904.

To reproduce the bug:

- create 'newLoanApplocation' schema;
- switch to Source view;
- delete '>'  in '<xs:element name="autoLoanApplication">' to make schema invalid;
- invoke 'Save Document';
- restart IDE.

Exception:

java.lang.NullPointerException
	at
org.netbeans.modules.xml.schema.ui.nodes.CreateSchemaComponentNodeVisitor.createNode(CreateSchemaComponentNodeVisitor.java:98)
	at
org.netbeans.modules.xml.schema.ui.nodes.SchemaNodeFactory.createNode(SchemaNodeFactory.java:93)
	at
org.netbeans.modules.xml.schema.ui.nodes.StructuralSchemaNodeFactory.createNode(StructuralSchemaNodeFactory.java:56)
	at
org.netbeans.modules.xml.schema.ui.nodes.SchemaNodeFactory.createRootNode(SchemaNodeFactory.java:76)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement.findNode(SchemaSourceMultiViewElement.java:414)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement.access$200(SchemaSourceMultiViewElement.java:66)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement$4.run(SchemaSourceMultiViewElement.java:365)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement.selectElementsAtOffset(SchemaSourceMultiViewElement.java:401)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement$3.actionPerformed(SchemaSourceMultiViewElement.java:159)
	at javax.swing.Timer.fireActionPerformed(Timer.java:271)
[catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:598)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Samaresh Panda 2006-09-06 18:50:15 UTC
Module: "XML Schema Core"
SchemaABEViewMultiViewElement.java: 1.1.2.41;
SchemaSourceMultiViewElement.java: 1.1.2.25;
Comment 2 kozlov 2006-09-07 12:04:02 UTC
Verified in build060907.