hansenjn / CiliaQ_Preparator

An ImageJ plugin to prepare images for analysis using CiliaQ.
GNU General Public License v3.0
0 stars 0 forks source link

java.lang.NullPointerException - CiliaQPrepMain.java:273 #3

Closed hansenjn closed 1 year ago

hansenjn commented 1 year ago

When running an image that is not saved, CiliaQ Preparator crashes with the error message:


java.lang.NullPointerException
    at ciliaQ_Prep_jnh.CiliaQPrepMain.run(CiliaQPrepMain.java:273)
    at ij.IJ.runUserPlugIn(IJ.java:217)
    at ij.IJ.runPlugIn(IJ.java:181)
    at ij.Executer.runCommand(Executer.java:137)
    at ij.Executer.run(Executer.java:66)
    at java.lang.Thread.run(Thread.java:750)

TODO: Catch the error and output an interpretable message to the user explaining how the user can avoid this issue.

hansenjn commented 1 year ago

Issue and solution is also described in the wiki: https://github.com/hansenjn/CiliaQ/wiki/Q&A:-How-to-solve-java.lang.NullPointerException-in-CiliaQ-Preparator%3F