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 196534 - NullPointerException: Netbeans documents must have 'mimeType' property: class javax.swing.text.html.HTMLDocument@12b9ce0
Summary: NullPointerException: Netbeans documents must have 'mimeType' property: class...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-10 09:05 UTC by ki4ngel
Modified: 2011-03-11 09:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177437


Attachments
stacktrace (1.60 KB, text/plain)
2011-03-10 09:06 UTC, ki4ngel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ki4ngel 2011-03-10 09:05:59 UTC
Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException: Netbeans documents must have 'mimeType' property: class javax.swing.text.html.HTMLDocument@12b9ce0
   at org.netbeans.modules.parsing.api.Source.create(Source.java:173)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.getActiveSource(RepositoryUpdater.java:2241)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.shouldRefresh(RepositoryUpdater.java:2359)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.invalidateSources(RepositoryUpdater.java:2350)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$Work.scanFiles(RepositoryUpdater.java:2106)
   at org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater$FileListWork.getDone(RepositoryUpdater.java:2299)
Comment 1 ki4ngel 2011-03-10 09:06:03 UTC
Created attachment 106869 [details]
stacktrace
Comment 2 Tomas Zezula 2011-03-10 09:11:49 UTC
I think it's a duplicate of some issue.
The Netbeans documents must have 'mimeType' property
Comment 3 Marek Fukala 2011-03-10 10:04:28 UTC
Tome, what do you think I should do with the issue? It is not netbeans document, its only javax.swing.text.html.HTMLDocument. It is not even clear to me how such instance gets to the RU.
Comment 4 Tomas Zezula 2011-03-10 10:10:36 UTC
It's taken from editor.
I will take a look at it. I think I can workaround it in the RU.
Comment 5 Tomas Zezula 2011-03-10 16:16:59 UTC
Fixed jet-main ed716f0fabd3
Comment 6 Quality Engineering 2011-03-11 09:42:26 UTC
Integrated into 'main-golden', will be available in build *201103110400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ed716f0fabd3
User: Tomas Zezula <tzezula@netbeans.org>
Log: #196534:NullPointerException: Netbeans documents must have 'mimeType' property: class javax.swing.text.html.HTMLDocument@12b9ce0