Skip to content

Commit

Permalink
android: do not call JNI functions without JNI being initialized
Browse files Browse the repository at this point in the history
This causes a crash on some platforms where onStop is called before
the lifecycle of the app reached ToolLauncher initialization

Signed-off-by: Adrian Suciu <[email protected]>
  • Loading branch information
adisuciu committed Jul 7, 2022
1 parent f8fd4de commit 307cfc2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion android/src/org/adi/scopy/ScopyActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ protected void onStart()
protected void onStop()
{
System.out.println("-- ScopyActivity: onStop");
System.out.println(nrOfToolsSavedJNI());
if (initialized) {
if (hasCtxJNI()) {
saveAndStopRunningInputToolsJNI();
Expand Down

0 comments on commit 307cfc2

Please sign in to comment.