Преглед на файлове

Merge pull request #60433 from madmiraal/remove-superfluous-null-check

Remove superfluous null check
Rémi Verschelde преди 3 години
родител
ревизия
d9f7da2230
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 4
      platform/android/java/lib/src/org/godotengine/godot/FullScreenGodotApp.java

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