Skip to content

Commit

Permalink
handling empty macro options
Browse files Browse the repository at this point in the history
  • Loading branch information
hansenjn committed Jul 29, 2024
1 parent 2a1d7b0 commit 62874d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 2D Analyzer/src/main/java/motiQ2D/MotiQ_2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ public void run(String arg) {
boolean showDialog = true;

if (IJ.macroRunning()
|| (Macro.getOptions() != null
&& Macro.getOptions().length()>0)) {
&& Macro.getOptions() != null
&& Macro.getOptions().length()>0) {
String macroOptions = Macro.getOptions().toLowerCase();

String temp;
Expand Down
4 changes: 2 additions & 2 deletions 3D Analyzer/src/main/java/motiQ3D/MotiQ_3D.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ public void run(String arg) {


if (IJ.macroRunning()
|| (Macro.getOptions() != null
&& Macro.getOptions().length()>0)) {
&& Macro.getOptions() != null
&& Macro.getOptions().length()>0) {
String macroOptions = Macro.getOptions().toLowerCase();

// IJ.log("Macro Options: " + macroOptions);
Expand Down
4 changes: 2 additions & 2 deletions Thresholder/src/main/java/motiQ_thr/Thresholder.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ public void run(String arg) {
boolean showDialog = true;

if (IJ.macroRunning()
|| (Macro.getOptions() != null
&& Macro.getOptions().length()>0)) {
&& Macro.getOptions() != null
&& Macro.getOptions().length()>0) {
String macroOptions = Macro.getOptions();
// IJ.log("Macro Options: " + macroOptions);

Expand Down

0 comments on commit 62874d4

Please sign in to comment.