Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4433537

NPE when reading HTML files with bad image references

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description



      Name: krC82822 Date: 04/03/2001


      C:\ASPflex\DREADPIRATEROBERTS\Compiled\administrator>java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      Problem is identified when using javahelp 1.1.1 with jdk1.3

      Javahelp left side navigational ( default helpbroker presentation )
      calls the html page listed in the .jhm file and also the TOC file.
      When called different html pages from left side navigational panel
      the following error occurs. The error happened because of image
      files references in the html page which is not found in image folder.
      The problem is resolved by deleting the image file references from
      the html pages. However, the SWING error as displayed in the dos window
      looks inappropriate.

      --------------------------------------------------------------------
      java.lang.NullPointerException
      > at javax.swing.text.CompositeView.replace(Unknown Source)
      > at javax.swing.text.CompositeView.loadChildren(Unknown Source)
      > at javax.swing.text.CompositeView.setParent(Unknown Source)
      > at javax.swing.text.FlowView.loadChildren(Unknown Source)
      > at javax.swing.text.CompositeView.setParent(Unknown Source)
      > at javax.swing.text.html.ParagraphView.setParent(Unknown Source)
      > at javax.swing.text.CompositeView.replace(Unknown Source)
      > at javax.swing.text.BoxView.replace(Unknown Source)
      > at javax.swing.text.CompositeView.loadChildren(Unknown Source)
      > at javax.swing.text.CompositeView.setParent(Unknown Source)
      > at javax.swing.text.html.BlockView.setParent(Unknown Source)
      > at javax.swing.text.CompositeView.replace(Unknown Source)
      > at javax.swing.text.BoxView.replace(Unknown Source)
      > at javax.swing.text.html.TableView$RowView.replace(Unknown Source)
      > at javax.swing.text.CompositeView.loadChildren(Unknown Source)
      > at javax.swing.text.CompositeView.setParent(Unknown Source)
      > at javax.swing.text.CompositeView.replace(Unknown Source)
      > at javax.swing.text.BoxView.replace(Unknown Source)
      > at javax.swing.text.html.TableView.replace(Unknown Source)
      > at javax.swing.text.CompositeView.loadChildren(Unknown Source)
      > at javax.swing.text.CompositeView.setParent(Unknown Source)
      > at javax.swing.text.html.TableView.setParent(Unknown Source)
      > at javax.swing.text.CompositeView.replace(Unknown Source)
      > at javax.swing.text.BoxView.replace(Unknown Source)
      > at javax.swing.text.CompositeView.loadChildren(Unknown Source)
      > at javax.swing.text.CompositeView.setParent(Unknown Source)
      > at javax.swing.text.html.BlockView.setParent(Unknown Source)
      > at javax.swing.text.CompositeView.replace(Unknown Source)
      > at javax.swing.text.BoxView.replace(Unknown Source)
      > at javax.swing.text.CompositeView.loadChildren(Unknown Source)
      > at javax.swing.text.CompositeView.setParent(Unknown Source)
      > at javax.swing.text.html.BlockView.setParent(Unknown Source)
      > at javax.swing.text.CompositeView.replace(Unknown Source)
      > at javax.swing.text.BoxView.replace(Unknown Source)
      > at javax.swing.text.View.updateChildren(Unknown Source)
      > at javax.swing.text.View.insertUpdate(Unknown Source)
      > at javax.swing.text.View.forwardUpdateToView(Unknown Source)
      > at javax.swing.text.View.forwardUpdate(Unknown Source)
      > at javax.swing.text.BoxView.forwardUpdate(Unknown Source)
      > at javax.swing.text.View.insertUpdate(Unknown Source)
      > at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(Unknown
      > ce)
      > at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(Un
      > Source)
      > at javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Sourc
      > at javax.swing.text.DefaultStyledDocument.insert(Unknown Source)
      > at javax.swing.text.html.HTMLDocument.insert(Unknown Source)
      > at javax.swing.text.html.HTMLDocument$HTMLReader.flushBuffer(Unknow
      > rce)
      > at javax.swing.text.html.HTMLDocument$HTMLReader.addContent(Unknown
      > ce)
      > at javax.swing.text.html.HTMLDocument$HTMLReader.addContent(Unknown
      > ce)
      > at javax.swing.text.html.HTMLDocument$HTMLReader.handleText(Unknown
      > ce)
      > at javax.swing.text.html.parser.DocumentParser.handleText(Unknown S
      > )
      > at javax.swing.text.html.parser.Parser.handleText(Unknown Source)
      > at javax.swing.text.html.parser.Parser.endTag(Unknown Source)
      > at javax.swing.text.html.parser.Parser.parseTag(Unknown Source)
      > at javax.swing.text.html.parser.Parser.parseContent(Unknown Source)
      > at javax.swing.text.html.parser.Parser.parse(Unknown Source)
      > at javax.swing.text.html.parser.DocumentParser.parse(Unknown Source
      > at javax.swing.text.html.parser.ParserDelegator.parse(Unknown Sourc
      > at javax.swing.text.html.HTMLEditorKit.read(Unknown Source)
      > at javax.swing.JEditorPane.read(Unknown Source)
      > at javax.swing.JEditorPane$PageLoader.run(Unknown Source)
      >
      > -------------------------------------------------------------------------
      (Review ID: 120075)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              svioletsunw Scott Violet (Inactive)
              Reporter:
              kryansunw Kevin Ryan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: