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.

Bug 81543 - null pointer exception when editing schema in source mode
Summary: null pointer exception when editing schema in source mode
Status: CLOSED DUPLICATE of bug 75881
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-31 23:20 UTC by Ritesh Adval
Modified: 2006-11-13 20:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Adval 2006-07-31 23:20:35 UTC
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)
Comment 1 Ritesh Adval 2006-07-31 23:23:44 UTC
This also observed in inline schema inside wsdl editor as well as in standalone 
schema editor.
Comment 2 Chris Webster 2006-07-31 23:57:02 UTC

*** This issue has been marked as a duplicate of 75881 ***