Skip to content

Commit

Permalink
Remove superfluous null check
Browse files Browse the repository at this point in the history
  • Loading branch information
madmiraal committed Apr 22, 2022
1 parent f4b0c7a commit 988432b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ public void onCreate(Bundle savedInstanceState) {
} 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();
}
}
Expand Down

0 comments on commit 988432b

Please sign in to comment.