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 93742 - NPE when expand Build-in Types
Summary: NPE when expand Build-in Types
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-31 23:07 UTC by Nam Nguyen
Modified: 2007-02-05 20:43 UTC (History)
0 users

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 Nam Nguyen 2007-01-31 23:07:25 UTC
- Create new schema
- Create new complex type using design view
- Add an element to complex type 
- Customize the element by clicking on Definition property
- In the dialog, expand Built-in Types.

Get NPE:
	at
org.netbeans.modules.xml.schema.abe.nodes.DatatypeNode.<init>(DatatypeNode.java:37)
	at
org.netbeans.modules.xml.schema.abe.nodes.ABENodeFactory.createNode(ABENodeFactory.java:131)
	at
org.netbeans.modules.xml.schema.abe.nodes.PrimitiveSimpleTypesNode$TypesChildren.createNodes(PrimitiveSimpleTypesNode.java:100)
Comment 1 bhate 2007-02-02 19:24:25 UTC
We need to add support for newly added anytype to primitiveschema.

xml/axi/src/org/netbeans/modules/xml/axi/datatype/Attic/AnyType.java
new revision: 1.1.2.1; previous revision: 1.1
xml/axi/src/org/netbeans/modules/xml/axi/datatype/Datatype.java
new revision: 1.1.2.8.6.1; previous revision: 1.1.2.8
xml/schema/abe/src/org/netbeans/modules/xml/schema/abe/nodes/Bundle.properties
new revision: 1.1.2.19.6.1; previous revision: 1.1.2.19
xml/axi/src/org/netbeans/modules/xml/axi/impl/DatatypeFactoryImpl.java
new revision: 1.1.2.5.6.1; previous revision: 1.1.2.5

fix checked in.
Comment 2 htt 2007-02-05 20:43:15 UTC
Verified in 070205_12.