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 93792 - NPE on editing value-of rule in source
Summary: NPE on editing value-of rule in source
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: XSLT (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 12:56 UTC by kozlov
Modified: 2008-03-12 09:07 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
TestXslt2 project archive (126.96 KB, application/octet-stream)
2007-02-01 12:57 UTC, kozlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2007-02-01 12:56:54 UTC
Reproduced in build070201.

- unzip and open attached project TestXslt2.zip;
- switch to source;
- find and edit any "value-of" rule.

NPE occurs.
Comment 1 kozlov 2007-02-01 12:57:48 UTC
Created attachment 37916 [details]
TestXslt2 project archive
Comment 2 kozlov 2007-02-08 15:12:02 UTC
java.lang.NullPointerException
	at
org.netbeans.modules.xsl.grammar.XSLGrammarQuery.queryValues(XSLGrammarQuery.java:645)
	at
org.netbeans.modules.xml.text.completion.XMLCompletionQuery.queryValues(XMLCompletionQuery.java:313)
	at
org.netbeans.modules.xml.text.completion.XMLCompletionQuery.query(XMLCompletionQuery.java:116)
	at
org.netbeans.modules.xml.text.completion.XMLCompletionProvider.queryImpl(XMLCompletionProvider.java:105)
	at
org.netbeans.modules.xml.text.completion.XMLCompletionProvider.access$100(XMLCompletionProvider.java:51)
	at
org.netbeans.modules.xml.text.completion.XMLCompletionProvider$Query.doQuery(XMLCompletionProvider.java:87)
	at
org.netbeans.modules.xml.text.completion.XMLCompletionProvider$AbstractQuery.query(XMLCompletionProvider.java:123)
	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 3 Sergey Lunegov 2007-02-09 07:00:44 UTC
Philipp, please use more appropriate subcomponents.
Comment 4 Alexey Yarmolenko 2007-02-09 12:56:17 UTC
Current XSL editor autocompletion feature requires DataObject to support
ScenarioCookie. 

We can not implement such cookie for our dataobject without introducing
implementation dependency with XML core module.

This bug should be fixed on XSL editor side, because such behavior makes this
editor non-reusable as a part of other multiview editors(for example, our
Transformation editor)
Comment 5 Vladimir Yaroslavskiy 2007-02-15 14:15:40 UTC
Index: XSLGrammarQuery.java
===================================================================
RCS file: /cvs/xml/xsl/src/org/netbeans/modules/xsl/grammar/XSLGrammarQuery.java,v
644,645c644,646
<                 Object selScenarioObj =
scenarioCookie.getModel().getSelectedItem();
---
> //              Object selScenarioObj =
scenarioCookie.getModel().getSelectedItem();
Comment 6 Vladimir Yaroslavskiy 2007-02-16 14:20:09 UTC
fixed in 070216_3.
Comment 7 tonybeckham 2007-03-30 00:34:30 UTC
I didn't ind any value-of rules in the source.  I added my own and didn't get
NPE fix VERIFIED rc1 build 200703261315.