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.
To reproduce the bug: - create a new schema; - add a new simpleType into it; - switch to source; - edit line <xsd:restriction base="xsd:string"/> so it becomes <xsd:restriction base="xsd:string"/> (i.e. without trailing slash); - open a new line below and press "<" key. The following NPE occurs: java.lang.NullPointerException at org.netbeans.modules.xml.dtd.grammar.ContentModel$Choice.reset(ContentModel.java:438) at org.netbeans.modules.xml.dtd.grammar.ContentModel$Sequence.reset(ContentModel.java:246) at org.netbeans.modules.xml.dtd.grammar.ContentModel.whatCanFollow(ContentModel.java:132) at org.netbeans.modules.xml.dtd.grammar.DTDGrammar.queryElements(DTDGrammar.java:176) at org.netbeans.modules.xml.text.completion.XMLCompletionQuery.queryElements(XMLCompletionQuery.java:273) at org.netbeans.modules.xml.text.completion.XMLCompletionQuery.query(XMLCompletionQuery.java:112) at org.netbeans.modules.xml.text.completion.XMLCompletionProvider.queryImpl(XMLCompletionProvider.java:98) at org.netbeans.modules.xml.text.completion.XMLCompletionProvider.access$000(XMLCompletionProvider.java:40) at org.netbeans.modules.xml.text.completion.XMLCompletionProvider$Query.query(XMLCompletionProvider.java:76) at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:189) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
*** This issue has been marked as a duplicate of 75881 ***
Close "DUPLICATE" issue