harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4660) [classlib][swing][html] NPE at <pre> tag
Date Wed, 05 Sep 2007 14:09:33 GMT

    [ 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.


Mime
View raw message