From 988432b8bb0ca4602ef7cf53dae9cdc155065e3b Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Fri, 22 Apr 2022 17:33:27 +0200 Subject: [PATCH] Remove superfluous null check --- .../lib/src/org/godotengine/godot/FullScreenGodotApp.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/platform/android/java/lib/src/org/godotengine/godot/FullScreenGodotApp.java b/platform/android/java/lib/src/org/godotengine/godot/FullScreenGodotApp.java index e8ffbb9481d..fb1604f6af8 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/FullScreenGodotApp.java +++ b/platform/android/java/lib/src/org/godotengine/godot/FullScreenGodotApp.java @@ -65,10 +65,6 @@ public abstract class FullScreenGodotApp extends FragmentActivity implements God } else { Log.v(TAG, "Creating new Godot fragment instance."); godotFragment = initGodotInstance(); - if (godotFragment == null) { - throw new IllegalStateException("Godot instance must be non-null."); - } - getSupportFragmentManager().beginTransaction().replace(R.id.godot_fragment_container, godotFragment).setPrimaryNavigationFragment(godotFragment).commitNowAllowingStateLoss(); } }