imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.2k stars 335 forks source link

String index out of range when doing a complex inverse FFT #269

Open ovcretzu opened 3 years ago

ovcretzu commented 3 years ago

When doing an inverse complex FFT on a stack with a short name, the following error appears: java.lang.StringIndexOutOfBoundsException: String index out of range: -9. This has to do with line 553 in FFT.java: String name = WindowManager.getUniqueName(imp.getTitle().substring(10)).

Steps to reproduce:

Workaround: rename the stack to something with >10 characters