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

Ensemble: IndexOutOfBoundsException when resizing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      Windows 7, Mac, post b41

      Description

      When Ensemble is dragged so that the top-left corner is past the top left corner of the screen and then a resizing of the window is attempted,
      an IndexOutOfBoundsException is thrown.

      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
              at java.util.ArrayList.RangeCheck(ArrayList.java:547)
              at java.util.ArrayList.get(ArrayList.java:322)
              at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:141)
              at ensemble.controls.WindowResizeButton$2.handle(WindowResizeButton.java:62)
              at ensemble.controls.WindowResizeButton$2.handle(WindowResizeButton.java:59)
              at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:60)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:162)
              at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:115)
              at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
              at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
              at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
              at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:47)
              at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
              at javafx.event.Event.fireEvent(Event.java:171)
              at javafx.scene.Scene$MouseHandler.process(Scene.java:2668)
              at javafx.scene.Scene$MouseHandler.process(Scene.java:2489)
              at javafx.scene.Scene$MouseHandler.access$1200(Scene.java:2462)
              at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1195)
              at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:1779)
              at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:200)
              at com.sun.glass.ui.View.handleMouseEvent(View.java:256)
              at com.sun.glass.ui.View.notifyMouse(View.java:516)
              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:662)

        Attachments

          Activity

            People

            Assignee:
            amillerjfx Alexander Miller (Inactive)
            Reporter:
            amillerjfx Alexander Miller (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: