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 202466 - NullPointerException at org.netbeans.lib.editor.util.swing.DocumentUtilities.getMimeType
Summary: NullPointerException at org.netbeans.lib.editor.util.swing.DocumentUtilities....
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 05:14 UTC by alaksundar
Modified: 2011-09-23 13:24 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181291


Attachments
stacktrace (2.56 KB, text/plain)
2011-09-22 05:14 UTC, alaksundar
Details
stacktrace (2.18 KB, text/plain)
2011-09-22 06:34 UTC, Martin Fousek
Details
stacktrace (2.57 KB, text/plain)
2011-09-22 09:46 UTC, kiar
Details
stacktrace (2.57 KB, text/plain)
2011-09-22 11:22 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alaksundar 2011-09-22 05:14:14 UTC
Build: NetBeans IDE Dev (Build 201109202329)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows XP

User Comments:
GUEST: Uncomments "To include a shell:" in pom.xml in maven osgi project.

GUEST: Ctrl+SPACE




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.lib.editor.util.swing.DocumentUtilities.getMimeType(DocumentUtilities.java:867)
   at org.netbeans.editor.EditorUI.getDefaultColoring(EditorUI.java:677)
   at org.netbeans.modules.editor.completion.HTMLDocView.setBodyFontInCSS(HTMLDocView.java:186)
   at org.netbeans.modules.editor.completion.HTMLDocView.createDefaultEditorKit(HTMLDocView.java:178)
   at javax.swing.JEditorPane.getEditorKit(JEditorPane.java:916)
   at javax.swing.plaf.basic.BasicEditorPaneUI.getEditorKit(BasicEditorPaneUI.java:113)
Comment 1 alaksundar 2011-09-22 05:14:19 UTC
Created attachment 111000 [details]
stacktrace
Comment 2 Martin Fousek 2011-09-22 06:34:11 UTC
Created attachment 111005 [details]
stacktrace

writting "extends TestCase" behind junit test class definition
Comment 3 kiar 2011-09-22 09:46:12 UTC
Created attachment 111017 [details]
stacktrace

open source completion (Ctrl+Space) in an java file with some errors (red underlines), completion window pops up and crash (close) with tis error
Comment 4 Maksim Khramov 2011-09-22 11:22:13 UTC
Created attachment 111028 [details]
stacktrace
Comment 5 Milutin Kristofic 2011-09-22 11:26:30 UTC
http://hg.netbeans.org/jet-main/rev/010412ebe4b2
Comment 6 Jiri Prox 2011-09-22 12:02:34 UTC
verified in trunk, please integrate to 7.1 beta
Comment 7 Milutin Kristofic 2011-09-23 10:45:20 UTC
It's already in releases71_beta: http://hg.netbeans.org/releases/rev/bcb933cc0012
Comment 8 Jiri Prox 2011-09-23 12:04:45 UTC
verified in beta
Comment 9 Quality Engineering 2011-09-23 13:24:25 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/010412ebe4b2
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #202466 - NullPointerException at org.netbeans.lib.editor.util.swing.DocumentUtilities.getMimeType