title: Flutter error: Attempt to invoke virtual method 'void com.google.firebase.auth.internal.zzab.zzf(int)' on a null object reference, null
body: <p>Whenever I'm building my app, my app successfully getting build but at the time of installing that to the device, I'm getting following error &amp; app get crash on the device with a white screen.</p>
  
  <pre><code>    Launching lib/main.dart on Pixel 2 XL in debug mode...
  Initializing gradle...
  Resolving dependencies...
  Running 'gradlew assembleDebug'...
  Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
  registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
  registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
  Note: /Users/sureshkumarmajhi/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/android/src/main/java/io/flutter/plugins/firebase/cloudfirestore/CloudFirestorePlugin.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  Note: /Users/sureshkumarmajhi/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.5.15/android/src/main/java/io/flutter/plugins/firebaseauth/FirebaseAuthPlugin.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  Note: /Users/sureshkumarmajhi/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.5.15/android/src/main/java/io/flutter/plugins/firebaseauth/FirebaseAuthPlugin.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  Note: /Users/sureshkumarmajhi/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.2.5+1/android/src/main/java/io/flutter/plugins/firebase/core/FirebaseCorePlugin.java uses unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  /Users/sureshkumarmajhi/.pub-cache/hosted/pub.dartlang.org/firebase_storage-1.0.1/android/src/main/java/io/flutter/plugins/firebase/storage/FirebaseStoragePlugin.java:293: warning: [unchecked] unchecked cast
      Map&lt;String, String&gt; customMetadata = (Map&lt;String, String&gt;) map.get("customMetadata");
                                                                        ^
    required: Map&lt;String,String&gt;
    found:    Object
  1 warning
  Note: /Users/sureshkumarmajhi/.pub-cache/hosted/pub.dartlang.org/video_player-0.6.4/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java uses or overrides a deprecated API.
  Note: Recompile with -Xlint:deprecation for details.
  Note: Some input files use unchecked or unsafe operations.
  Note: Recompile with -Xlint:unchecked for details.
  Built build/app/outputs/apk/debug/app-debug.apk.
  Installing build/app/outputs/apk/app.apk...
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716): Failed to handle method call
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716): java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.auth.internal.zzab.zzf(int)' on a null object reference
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.google.firebase.auth.FirebaseAuth.addIdTokenListener(Unknown Source:16)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.google.firebase.firestore.obfuscated.zzc.&lt;init&gt;(com.google.firebase:firebase-firestore@@17.1.1:76)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.google.firebase.firestore.FirebaseFirestore.zza(com.google.firebase:firebase-firestore@@17.1.1:109)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.google.firebase.firestore.zzh.zza(com.google.firebase:firebase-firestore@@17.1.1:51)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.google.firebase.firestore.FirebaseFirestore.zza(com.google.firebase:firebase-firestore@@17.1.1:87)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.google.firebase.firestore.FirebaseFirestore.getInstance(com.google.firebase:firebase-firestore@@17.1.1:78)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at io.flutter.plugins.firebase.cloudfirestore.CloudFirestorePlugin.getFirestore(CloudFirestorePlugin.java:82)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at io.flutter.plugins.firebase.cloudfirestore.CloudFirestorePlugin.onMethodCall(CloudFirestorePlugin.java:603)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at android.os.MessageQueue.nativePollOnce(Native Method)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at android.os.MessageQueue.next(MessageQueue.java:326)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at android.os.Looper.loop(Looper.java:160)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at android.app.ActivityThread.main(ActivityThread.java:6669)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at java.lang.reflect.Method.invoke(Native Method)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
  E/MethodChannel#plugins.flutter.io/cloud_firestore( 2716):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
  E/flutter ( 2716): [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Unhandled exception:
  E/flutter ( 2716): PlatformException(error, Attempt to invoke virtual method 'void com.google.firebase.auth.internal.zzab.zzf(int)' on a null object reference, null)
  E/flutter ( 2716): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:551:7)
  E/flutter ( 2716): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:279:18)
  E/flutter ( 2716): &lt;asynchronous suspension&gt;
  E/flutter ( 2716): #2      Firestore.settings (file:///Users/sureshkumarmajhi/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.8.2+1/lib/src/firestore.dart:136:19)
  E/flutter ( 2716): &lt;asynchronous suspension&gt;
  E/flutter ( 2716): #3      main (file:///Users/sureshkumarmajhi/AndroidStudioProjects/bhramaan/lib/main.dart:62:19)
  E/flutter ( 2716): &lt;asynchronous suspension&gt;
  E/flutter ( 2716): #4      _startIsolate.&lt;anonymous closure&gt; (dart:isolate/runtime/libisolate_patch.dart:289:19)
  E/flutter ( 2716): #5      _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
  Syncing files to device Pixel 2 XL...
  </code></pre>
  
  <p>I'm getting this error after upgrading to latest <code>cloud_firestore: ^0.8.2+1</code>.  Can't able to understand what is happening. :(</p>