You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/08/21 17:52:31 UTC
[jira] Created: (HARMONY-4660) [classlib][swing][html] NPE at
tag
[classlib][swing][html] NPE at <pre> tag
----------------------------------------
Key: HARMONY-4660
URL: https://issues.apache.org/jira/browse/HARMONY-4660
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Vasily Zakharov
The following test demonstrates the problem:
public class Test {
public static void main(String argv[]) {
try {
new javax.swing.JEditorPane("text/html", "<pre> pre\n pre</pre><p>p</p>");
} catch (Exception e) {
e.printStackTrace(System.out);
}
}
}
On Harmony, it causes the following exception:
java.lang.NullPointerException
at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertEndTag(DefaultStyledDocument.java:603)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.performSpecs(DefaultStyledDocument.java:342)
at javax.swing.text.DefaultStyledDocument$ElementBuffer.create(DefaultStyledDocument.java:328)
at javax.swing.text.DefaultStyledDocument.create(DefaultStyledDocument.java:1207)
at javax.swing.text.html.HTMLDocument.access$1(HTMLDocument.java:1)
at javax.swing.text.html.HTMLDocument$HTMLReader.flushImpl(HTMLDocument.java:836)
at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:665)
at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:738)
at javax.swing.text.JTextComponent.read(JTextComponent.java:1289)
at javax.swing.JEditorPane.setText(JEditorPane.java:772)
at javax.swing.JEditorPane.<init>(JEditorPane.java:305)
at Test.main(Test.java:4)
I suspect this issue may be related to HARMONY-4582.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-4660) [classlib][swing][html] NPE at
tag
Posted by "Vasily Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525105 ]
Vasily Zakharov commented on HARMONY-4660:
------------------------------------------
This issue seems very common and occurs on most pages, and could block investigation of other bugs like HARMONY-4748.
> [classlib][swing][html] NPE at <pre> tag
> ----------------------------------------
>
> Key: HARMONY-4660
> URL: https://issues.apache.org/jira/browse/HARMONY-4660
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Vasily Zakharov
>
> The following test demonstrates the problem:
> public class Test {
> public static void main(String argv[]) {
> try {
> new javax.swing.JEditorPane("text/html", "<pre> pre\n pre</pre><p>p</p>");
> } catch (Exception e) {
> e.printStackTrace(System.out);
> }
> }
> }
> On Harmony, it causes the following exception:
> java.lang.NullPointerException
> at javax.swing.text.DefaultStyledDocument$ElementBuffer.insertEndTag(DefaultStyledDocument.java:603)
> at javax.swing.text.DefaultStyledDocument$ElementBuffer.performSpecs(DefaultStyledDocument.java:342)
> at javax.swing.text.DefaultStyledDocument$ElementBuffer.create(DefaultStyledDocument.java:328)
> at javax.swing.text.DefaultStyledDocument.create(DefaultStyledDocument.java:1207)
> at javax.swing.text.html.HTMLDocument.access$1(HTMLDocument.java:1)
> at javax.swing.text.html.HTMLDocument$HTMLReader.flushImpl(HTMLDocument.java:836)
> at javax.swing.text.html.HTMLDocument$HTMLReader.flush(HTMLDocument.java:665)
> at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:738)
> at javax.swing.text.JTextComponent.read(JTextComponent.java:1289)
> at javax.swing.JEditorPane.setText(JEditorPane.java:772)
> at javax.swing.JEditorPane.<init>(JEditorPane.java:305)
> at Test.main(Test.java:4)
> I suspect this issue may be related to HARMONY-4582.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.