diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-04-25 16:02:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 16:02:40 +0200 |
commit | d9f7da22300f695e6398d52898afd7496d2fc175 (patch) | |
tree | d5b7cfa7abb0f611f67bacef480e3808374f10b5 | |
parent | b4a1a76bce4c93efa850d2e8dbde5abf7a8e01cf (diff) | |
parent | 988432b8bb0ca4602ef7cf53dae9cdc155065e3b (diff) |
Merge pull request #60433 from madmiraal/remove-superfluous-null-check
Remove superfluous null check
-rw-r--r-- | platform/android/java/lib/src/org/godotengine/godot/FullScreenGodotApp.java | 4 |
1 files changed, 0 insertions, 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 e8ffbb9481..fb1604f6af 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(); } } |