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 187658 - Code completion : NullPointerException on non-standard namespace in XML
Summary: Code completion : NullPointerException on non-standard namespace in XML
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Retriever (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
: 181182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-16 14:30 UTC by martin_sladecek
Modified: 2012-03-23 21:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example XML (151 bytes, text/xml)
2010-06-16 14:30 UTC, martin_sladecek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martin_sladecek 2010-06-16 14:30:15 UTC
Created attachment 100136 [details]
Example XML

Using code completion in xml with non-standard namespace throws a NullPointerException. An example may be a Blu-ray Permission Request File (example is attached).

java.lang.NullPointerException
        at org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.getModelSource(CatalogModelImpl.java:251)
        at org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.doGetModelSource(CatalogModelImpl.java:236)
        at org.netbeans.modules.xml.retriever.catalog.impl.CatalogModelImpl.getModelSource(CatalogModelImpl.java:171)
        at org.netbeans.modules.xml.schema.completion.util.DefaultModelProvider.getCompletionModel(DefaultModelProvider.java:118)
        at org.netbeans.modules.xml.schema.completion.util.CompletionContextImpl.specialCompletion(CompletionContextImpl.java:783)
        at org.netbeans.modules.xml.schema.completion.util.CompletionContextImpl.initModels(CompletionContextImpl.java:744)
        at org.netbeans.modules.xml.schema.completion.CompletionQuery.getCompletionItems(CompletionQuery.java:107)
        at org.netbeans.modules.xml.schema.completion.CompletionQuery.query(CompletionQuery.java:84)
[catch] at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Comment 1 Sergey Lunegov 2010-06-17 08:51:03 UTC
Vladimir, please take a look.
Comment 2 Vladimir Yaroslavskiy 2010-06-21 14:02:11 UTC
fixed in trunk.
Comment 3 Quality Engineering 2010-06-22 03:18:58 UTC
Integrated into 'main-golden', will be available in build *201006220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/71d2414e60ba
User: Vladimir Yaroslavskiy <yaroslavskiy@netbeans.org>
Log: [Bug #187658] Code completion: NullPointerException on non-standard namespace in XML
Comment 4 Svata Dedic 2012-03-23 21:13:43 UTC
*** Bug 181182 has been marked as a duplicate of this bug. ***