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 81505 - NPE on opening of Code Completion list into 'restriction'
Summary: NPE on opening of Code Completion list into 'restriction'
Status: CLOSED DUPLICATE of bug 75881
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-31 16:21 UTC by kozlov
Modified: 2006-08-01 11:30 UTC (History)
4 users (show)

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 kozlov 2006-07-31 16:21:52 UTC
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)
Comment 1 Chris Webster 2006-07-31 16:26:38 UTC

*** This issue has been marked as a duplicate of 75881 ***
Comment 2 kozlov 2006-08-01 11:30:37 UTC
Duplicate