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 80492 - NPE on using code completion
Summary: NPE on using code completion
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-18 16:00 UTC by kozlov
Modified: 2006-07-19 16: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-18 16:00:11 UTC
Reproduced in build 060718.

To reproduce the bug:

- create a new schema;
- switch to Source view;
- place cursor under '<?xml version="1.0" encoding="UTF-8"?>';
- press 'Ctrl + Space'.

NPE:

java.lang.NullPointerException
	at
org.netbeans.modules.xml.schema.completion.util.CompletionQueryHelper.findSchemaLocation(CompletionQueryHelper.java:113)
	at
org.netbeans.modules.xml.schema.completion.util.CompletionQueryHelper.isSchemaBasedCompletion(CompletionQueryHelper.java:93)
	at
org.netbeans.modules.xml.schema.completion.CompletionQuery.query(CompletionQuery.java:67)
	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 Samaresh Panda 2006-07-19 00:04:31 UTC
Fix integrated.
SchemaBasedCompletionProvider.java, new revision: 1.1.2.7;
CompletionQueryHelper.java, new revision: 1.1.2.13;
Comment 2 kozlov 2006-07-19 16:30:10 UTC
Verified in build060719.