JEditorPane.setPage() generates NPE in DefaultStyledDocument.getParagraphElement() for simple HTML file ------------------------------------------------------------------------------------------------------- Key: HARMONY-6081 URL: Project: Harmony Issue Type: Bug Components: Classlib Affects Versions: 5.0M8 Environment: Apache Harmony Launcher : (c) Copyright 1991, 2008 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r713673, (Nov 13 2008), Windows/ia32/msvc 1310, release build Win XP Reporter: Sebb The following code: JTextPane tp = new JTextPane(); tp.setPage("file:simple.html"); where simple.html consists of causes the follow NPE: java.lang.NullPointerException at javax.swing.text.DefaultStyledDocument.getParagraphElement( at javax.swing.text.DefaultStyledDocument.getCharacterElement( at javax.swing.text.html.HTMLDocument$HTMLReader.removeDefaultBody( at javax.swing.text.html.HTMLDocument$HTMLReader.flushImpl( at javax.swing.text.html.HTMLDocument$HTMLReader.flush( at at at javax.swing.JEditorPane.documentLoading( at javax.swing.JEditorPane.setPage( at javax.swing.JEditorPane.setPage( -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.