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 94464 - After getting the editor kit of a mime type, code completion threw null pointer exception
Summary: After getting the editor kit of a mime type, code completion threw null point...
Status: RESOLVED DUPLICATE of bug 90755
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 19:27 UTC by Soot Phengsy
Modified: 2007-11-05 13:38 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 Soot Phengsy 2007-02-05 19:27:29 UTC
After setting a mime type for an editor in my JEditorPane (Code below), I
received a null pointer exception when trying to perform code completion in my
editor pane.  I am using Netbeans 6.0 daily build of 1-25-07, and jdk 6.0.

// javaEditor is a JEditorPane
EditorKit javaKit = CloneableEditorSupport.getEditorKit("text/x-java");
javaEditor.setEditorKit(javaKit);

// Exception
java.lang.NullPointerException
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:236)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:195)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Comment 1 Vitezslav Stejskal 2007-02-05 22:45:17 UTC
I think this one has already been fixed. Please try with the latest dev build.

*** This issue has been marked as a duplicate of 90755 ***