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 75584 - NPE on altering xsd:restriction component in source
Summary: NPE on altering xsd:restriction component in source
Status: VERIFIED DUPLICATE of bug 75881
Alias: None
Product: xml
Classification: Unclassified
Component: Schema (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 19:45 UTC by Ayub Khan
Modified: 2007-09-25 01:32 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 Ayub Khan 2006-04-26 19:45:28 UTC
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)
Comment 1 Marek Fukala 2006-06-26 15:15:15 UTC

*** This issue has been marked as a duplicate of 75881 ***
Comment 2 _ hong_lin 2007-08-15 20:17:18 UTC
Close "DUPLICATE" issue