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.
Reproduced in build 060730. To reproduce the bug: - create a new schema; - add 'Simple Type' with restriction: <xsd:simpleType> <xsd:restriction> </xsd:restriction> </xsd:simpleType> - switch to Source view; - type '<' into 'restriction'. NPE: 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 issue has been marked as a duplicate of 75881 ***
Duplicate