Repository: flutter
Issue: NullPointerException: FlutterFragment.onCreateView
Labels: c: crash,platform-android,engine,a: production,P2,team-android,triaged-android

Our production app has the a lot of NullPointerException in FlutterFragment.onCreateView as below. 

We previously saw the same NullPointerException in FlutterFragment.onStart as well. But we saw it has been fixed recently in [this PR](https://github.com/flutter/engine/pull/24181). Can you also apply the fix for 
FlutterFragment.onCreateView? 

![image](https://user-images.githubusercontent.com/52583465/126537548-ce48ca4c-03fa-41bd-9123-226db600aea8.png)

`java.lang.NullPointerException: at io.flutter.embedding.android.FlutterFragment.onCreateView (FlutterFragment.java:621) at androidx.fragment.app.Fragment.performCreateView (Fragment.java:2963) at androidx.fragment.app.FragmentStateManager.createView (FragmentStateManager.java:518) at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:282) at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:112) at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1647) at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3128) at androidx.fragment.app.FragmentManager.dispatchViewCreated (FragmentManager.java:3065) at androidx.fragment.app.Fragment.performViewCreated (Fragment.java:2988) at androidx.fragment.app.FragmentStateManager.createView (FragmentStateManager.java:546) at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:282) at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:112) at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1647) at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3128) at androidx.fragment.app.FragmentManager.dispatchViewCreated (FragmentManager.java:3065) at androidx.fragment.app.Fragment.performViewCreated (Fragment.java:2988) at androidx.fragment.app.FragmentStateManager.createView (FragmentStateManager.java:546) at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:282) at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:112) at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1647) at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3128) at androidx.fragment.app.FragmentManager.dispatchViewCreated (FragmentManager.java:3065) at androidx.fragment.app.Fragment.performViewCreated (Fragment.java:2988) at androidx.fragment.app.FragmentStateManager.createView (FragmentStateManager.java:546) at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:282) at androidx.fragment.app.FragmentManager.executeOpsTogether (FragmentManager.java:2180) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute (FragmentManager.java:2106) at androidx.fragment.app.FragmentManager.execPendingActions (FragmentManager.java:2002) at androidx.fragment.app.FragmentManager$5.run (FragmentManager.java:524) at android.os.Handler.handleCallback (Handler.java:938) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loop (Looper.java:246) at android.app.ActivityThread.main (ActivityThread.java:8512) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)`