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.
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 User Comments: boucherb: Assigning a predefined simple type as the 'structure' of a direct attribute of an inline complex type in a global schema element. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.xml.schema.model.impl.SchemaComponentImpl.populateChildren(SchemaComponentImpl.java:101) at org.netbeans.modules.xml.xam.AbstractComponent._getChildren(AbstractComponent.java:154) at org.netbeans.modules.xml.xam.AbstractComponent.getChildren(AbstractComponent.java:138) at org.netbeans.modules.xml.schema.model.visitor.DeepSchemaVisitor.visitChildren(DeepSchemaVisitor.java:266) at org.netbeans.modules.xml.schema.model.visitor.DeepSchemaVisitor.visit(DeepSchemaVisitor.java:54) at org.netbeans.modules.xml.schema.model.impl.LocalSimpleTypeImpl.accept(LocalSimpleTypeImpl.java:76)
Created attachment 79467 [details] stacktrace
Please provide exact steps to reproduce the issue.
here's the structure that resulted in the NPE for me: <xs:element name="userOrderBy"> <xs:complexType> <xs:sequence> <xs:element name="field" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:restriction base="xs:string"> <xs:enumeration value="userId"/> <xs:enumeration value="name"/> <xs:enumeration value="email"/> <xs:enumeration value="employeeNumber"/> <xs:enumeration value="departureDate"/> <xs:enumeration value="lastLoginDateTime"/> <xs:enumeration value="supervisorUserId"/> <xs:enumeration value="supervisorName"/> <xs:enumeration value="supervisorEmail"/> <xs:enumeration value="supervisorEmployeeNumber"/> </xs:restriction> <xs:attribute ref="rram:sortDirection" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> Its obviously incorrect, and validation errors should have happened.
Would you please attach the whole schema.
Created attachment 102034 [details] stacktrace
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.