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.
getting null pointer exception when trying to edit schema in source view: I have following global simple type: <xsd:simpleType name="newSimpleType"> <xsd:restriction base="xsd:string"> <xsd:enumeration value="TEST"/> </xsd:restriction> </xsd:simpleType> when ever I type "<" inside restriction after <xsd:enumeration value="TEST"/> I am getting following exception. Note this happen only inside restriction. java.lang.NullPointerException at org.netbeans.modules.xml.dtd.grammar.ContentModel$Choice.reset (ContentModel.java:444) at org.netbeans.modules.xml.dtd.grammar.ContentModel$Sequence.reset (ContentModel.java:252) at org.netbeans.modules.xml.dtd.grammar.ContentModel.whatCanFollow (ContentModel.java:138) at org.netbeans.modules.xml.dtd.grammar.DTDGrammar.queryElements (DTDGrammar.java:182) at org.netbeans.modules.xml.text.completion.XMLCompletionQuery.queryElements (XMLCompletionQuery.java:279) at org.netbeans.modules.xml.text.completion.XMLCompletionQuery.query (XMLCompletionQuery.java:118) at org.netbeans.modules.xml.text.completion.XMLCompletionProvider.queryImpl (XMLCompletionProvider.java:104) at org.netbeans.modules.xml.text.completion.XMLCompletionProvider.access$000 (XMLCompletionProvider.java:46) at org.netbeans.modules.xml.text.completion.XMLCompletionProvider$Query.query (XMLCompletionProvider.java:82) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run (AsyncCompletionTask.java:195) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run (RequestProcessor.java:932)
This also observed in inline schema inside wsdl editor as well as in standalone schema editor.
*** This issue has been marked as a duplicate of 75881 ***