Remove superfluous null check

This commit is contained in:
Marcel Admiraal 2022-04-22 17:33:27 +02:00
parent f4b0c7a1ea
commit 988432b8bb
1 changed files with 0 additions and 4 deletions

View File

@ -65,10 +65,6 @@ public abstract class FullScreenGodotApp extends FragmentActivity implements God
} else { } else {
Log.v(TAG, "Creating new Godot fragment instance."); Log.v(TAG, "Creating new Godot fragment instance.");
godotFragment = initGodotInstance(); 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(); getSupportFragmentManager().beginTransaction().replace(R.id.godot_fragment_container, godotFragment).setPrimaryNavigationFragment(godotFragment).commitNowAllowingStateLoss();
} }
} }