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

WebHistory.goFoward() causes an exception when called in newly created WebEngine

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 7u6
    • javafx
    • None
    • web

      When calling WebHisotry.goForward() on WebHistory object which is tied to a newly created WebEngine without history, the following exception is thrown:

      java.lang.IndexOutOfBoundsException: the effective index 1 is out of the range [0..-1]
      at javafx.scene.web.WebHistory.go(WebHistory.java:278)
      at javafx.scene.web.WebHistory.goForward(WebHistory.java:313)
      at com.sun.fx.webnode.tests.commonUtils.HistoryTestClass$6.run(HistoryTestClass.java:96)
      at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:142)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
      at java.lang.Thread.run(Thread.java:722)

            ant Anton Tarasov (Inactive)
            ilatyshe Irina Grineva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: