NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

Ticket #147 (closed defect: fixed)

Opened 2007-06-20T13:30:11-05:00

Last modified 2007-06-26T17:51:10-05:00

Polyline array out of bounds exception.

Reported by: sorber Owned by: sorber
Priority: critical Milestone:
Component: visbio Severity:
Keywords: polyline Cc:
Blocked By: Blocking:

Description

This has become visible now that bounds checking has been removed from OverlayNodedObject array mutators.

PolylineTool:191

line.setNodeCoords(selectedNode, dx, dy);

Selected node is -1 if no node selected. For some reason tool is entering adjust mode even when no node is selected. Full stack trace below:

Exception occurred during Behavior execution:
java.lang.ArrayIndexOutOfBoundsException: -1
        at loci.visbio.overlays.OverlayNodedObject.setNodeCoords(OverlayNodedObject.java:465)
        at loci.visbio.overlays.PolylineTool.mouseDrag(PolylineTool.java:191)
        at loci.visbio.overlays.OverlayTransform.displayChanged(OverlayTransform.java:763)
        at loci.visbio.view.TransformLink.displayChanged(TransformLink.java:210)
        at visad.DisplayImpl.notifyListeners(DisplayImpl.java:529)
        at visad.MouseHelper.processEvent(MouseHelper.java:510)
        at visad.MouseHelper.processEvent(MouseHelper.java:136)
        at visad.java3d.MouseBehaviorJ3D.processStimulus(MouseBehaviorJ3D.java:147)
        at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:172)
        at javax.media.j3d.J3dThread.run(J3dThread.java:256)

Change History

comment:1 Changed 2007-06-26T17:51:10-05:00 by sorber

  • Status changed from new to closed
  • Resolution set to fixed

Fixed a number of small bugs in polyline including this one.