2
0
Эх сурвалжийг харах

Remove superfluous null check

Marcel Admiraal 3 жил өмнө
parent
commit
988432b8bb

+ 0 - 4
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();
 		}
 	}