Skip to content

Commit

Permalink
Add guard to fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
holly-cummins committed Dec 2, 2024
1 parent 5bc99f9 commit 84a2ba9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,13 @@ public final void stop(Runnable afterStopTask) {
}

public static Application currentApplication() {
System.out.println("HOLLY sharing current application and auxiliar is " + currentApplication.auxiliaryApplication);
if (currentApplication != null) {
System.out.println("HOLLY sharing current application and auxiliar is " + currentApplication.auxiliaryApplication);
} else {
System.out.println("HOLLY sharing current application but it is null ");

}

return currentApplication;
}

Expand Down

0 comments on commit 84a2ba9

Please sign in to comment.