icbm-iupui / volumetric-tissue-exploration-analysis

3D TISSUE CYTOMETRY PLUGIN FOR IMAGEJ DOWNLOAD and INSTALL:
http://imagej.net/VTEA
Other
11 stars 3 forks source link

Neighborhood generation behavior #70

Open winfrees opened 3 years ago

winfrees commented 3 years ago

Describe the bug Neighborhood generation crashes in some cases

To Reproduce Steps to reproduce the behavior:

  1. Generate and select gate
  2. Right click on graph
  3. select neighborhood analysis and populate
  4. Click OK
  5. If errored progress bar will be infinite and this error is thrown:

"ERROR: Index: 0, Size: 0 java.util.ArrayList.rangeCheck(ArrayList.java:657) java.util.ArrayList.get(ArrayList.java:433) vtea.exploration.plottools.panels.XYExplorationPanel.addNeighborhoodFromGate(XYExplorationPanel.java:2552) vtea.exploration.plotgatetools.gates.GateLayer.notifyNeighborhoodListeners(GateLayer.java:1094) vtea.exploration.plotgatetools.gates.GateLayer.lambda$actionPerformed$1(GateLayer.java:909) java.lang.Thread.run(Thread.java:748) "

Expected behavior Two things, the error shouldn't happen and it probably could be captured by verifying the content of an ArrayList prior to running and by setting the accessibility of "Generate Neighborhoods..." in the pop-down menu.