Remove superfluous null check

(cherry picked from commit 988432b8bb)
This commit is contained in:
Marcel Admiraal 2022-04-22 17:33:27 +02:00 committed by Rémi Verschelde
parent 76b5c31433
commit 9a4d4ec2d5

View file

@ -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();
}
}