flutter: java: Do not call supper.attachBaseContext if base is null
This commit is contained in:
parent
b6947421e3
commit
bf2d7131e1
|
@ -95,7 +95,9 @@ public class MainActivity extends FlutterActivity {
|
|||
|
||||
@Override
|
||||
protected void attachBaseContext(Context base) {
|
||||
super.attachBaseContext(base);
|
||||
if (base != null) {
|
||||
super.attachBaseContext(base);
|
||||
}
|
||||
|
||||
// Initialize xCrash.
|
||||
if (Build.VERSION.SDK_INT >= 19) {
|
||||
|
|
Loading…
Reference in New Issue