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.
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)
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 ***