title: Null pointer exception - BitmapDescriptorFactory is not initialized
body: <p>Here is the code that causing rising the exception</p>
  
  <pre><code> mMarker = mMap.addMarker(new MarkerOptions().icon(BitmapDescriptorFactory
                      .fromResource(R.drawable.pin)).position(latLng));
  </code></pre>
  
  <p>Adding the crash log:</p>
  
  <pre><code>com.google.android.gms.common.internal.zzbq.checkNotNull (Unknown Source)
  com.google.android.gms.maps.model.BitmapDescriptorFactory.zzawe (Unknown Source)
  com.google.android.gms.maps.model.BitmapDescriptorFactory.fromResource (Unknown Source)
  com.app.myapplication.fragments.BaseHomeFragment$4.onReceive (BaseHomeFragment.java:206)
  android.app.LoadedApk$ReceiverDispatcher$Args.run (LoadedApk.java:1185)
  android.os.Handler.handleCallback (Handler.java:751)
  android.os.Handler.dispatchMessage (Handler.java:95)
  android.os.Looper.loop (Looper.java:154)
  android.app.ActivityThread.main (ActivityThread.java:6836)
  java.lang.reflect.Method.invoke (Method.java)
  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1520)
  com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1410)
  </code></pre>
  
  <p>Why this <strong>BitmapDescriptorFactory.fromResource(R.drawable.pin)</strong> rising unknown source error???</p>
  
  <p>I can handle this using a null check, but that won't solve the exact problem.  </p>
  
  <p>Please share your thoughts.</p>