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:


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


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(
        at loci.visbio.overlays.PolylineTool.mouseDrag(
        at loci.visbio.overlays.OverlayTransform.displayChanged(
        at loci.visbio.view.TransformLink.displayChanged(
        at visad.DisplayImpl.notifyListeners(
        at visad.MouseHelper.processEvent(
        at visad.MouseHelper.processEvent(
        at visad.java3d.MouseBehaviorJ3D.processStimulus(

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.