소스 검색

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