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 197250 - NullPointerException at javax.swing.text.html.StyleSheet.getForeground
Summary: NullPointerException at javax.swing.text.html.StyleSheet.getForeground
Status: CLOSED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-30 19:28 UTC by obalyuk
Modified: 2011-06-08 20:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 178045


Attachments
stacktrace (4.18 KB, text/plain)
2011-03-30 19:28 UTC, obalyuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description obalyuk 2011-03-30 19:28:31 UTC
Build: NetBeans IDE Dev (Build 201103020001)
VM: OpenJDK Client VM, 19.0-b09, OpenJDK Runtime Environment, 1.6.0_20-b20
OS: Linux

User Comments:
obalyuk: was typing html <img tag...




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.text.html.StyleSheet.getForeground(StyleSheet.java:896)
   at javax.swing.text.DefaultStyledDocument.getForeground(DefaultStyledDocument.java:777)
   at javax.swing.text.LabelView.setPropertiesFromAttributes(LabelView.java:146)
   at javax.swing.text.html.InlineView.setPropertiesFromAttributes(InlineView.java:306)
   at javax.swing.text.LabelView.sync(LabelView.java:56)
   at javax.swing.text.LabelView.getFont(LabelView.java:208)
Comment 1 obalyuk 2011-03-30 19:28:35 UTC
Created attachment 107390 [details]
stacktrace
Comment 2 Miloslav Metelka 2011-03-30 20:41:15 UTC
Could you please be more specific? Did you type it in an html source? Could you please provide steps to reproduce? Thanks.
Comment 3 obalyuk 2011-03-30 20:48:00 UTC
I'm unable to reproduce this problem.
I was working on editing smarty file (without smarty plug-in), file with tpl extension. In my configs I have .tpl associated with .html

File contains HTML sources with smarty {$variables}, which does not really matter... When I typed "<img src=", the error popped up (right after releasing "=").
Comment 4 Dusan Balek 2011-03-31 13:34:27 UTC
Seems like a JDK problem
Comment 5 Antonin Nebuzelsky 2011-05-31 10:18:49 UTC
Unreproducible. Hard to report against JDK without additional information.
Comment 6 Marian Mirilovic 2011-06-08 20:08:40 UTC
without additional information - v/c