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 Dev (Build 200906070201) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows Vista, 6.0, x86 Stacktrace: java.lang.NullPointerException<br/> at org.netbeans.modules.xml.schema.ui.nodes.categorized.customizer.SimpleTypeCustomizer.determineValidity(SimpleTypeCustomizer.java:453)<br/> at org.netbeans.modules.xml.schema.ui.nodes.categorized.customizer.SimpleTypeCustomizer.propertyChange(SimpleTypeCustomizer.java:427)<br/> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)<br/> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)<br/> at java.awt.Component.firePropertyChange(Component.java:8128)<br/> at org.netbeans.modules.xml.schema.ui.basic.editors.SchemaComponentSelectionPanel.setCurrentSelection(SchemaComponentSelectionPanel.java:246)<br/>
Created attachment 84874 [details] stacktrace
Please provide exact steps to reproduce the issue
1) Create a very simple yet buggy XML schema: <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xml.netbeans.org/schema/test" xmlns:tns="http://xml.netbeans.org/schema/test" elementFormDefault="qualified"> <xsd:simpleType name="test"/> </xsd:schema> 2) Switch to "Schema" view and select Simple Type named "test" 3) Right click, "Properties" 4) Click on "Structure... Customize" 5) In the Base Type part, select an existing definition, let's say "string" An NPE appears. I guess the reason is because no Derivation Method is selected, because as soon as you select a "Restriction", you can select the Base type from existing definition.