title: Null pointer exception at mapFragment.getMapAsync(this) while initializing google map
body: <p>When I use v6.5.87 of Google Play Services, I get a null pointer exception when I call <code>getMapAsync()</code>. I'm using a <code>SupportMapFragment</code> in my <code>Fragment</code>'s xml layout.</p>
  
  <p>My code:</p>
  
  <pre><code>SupportMapFragment mapFragment = (SupportMapFragment) getActivity()
          .getSupportFragmentManager().findFragmentById(R.id.mapFragment);
  
  mapFragment.getMapAsync(this);
  </code></pre>
  
  <p>Note: There's no problem when calling <code>getMap()</code> on older Google Play Services versions, but <code>getMap()</code> is now deprecated (<a href="https://developer.android.com/google/play-services/index.html" rel="noreferrer">docs</a>).</p>
  
  <p>Here's the stack trace for the NPE:</p>
  
  <pre><code>java.lang.NullPointerException
              at com.decos.fixi.fragments.FragmentLocationMap.initializeMap(FragmentLocationMap.java:132)
              at com.decos.fixi.fragments.FragmentLocationMap.onCreateView(FragmentLocationMap.java:95)
              at android.support.v4.app.Fragment.performCreateView(Fragment.java:1786)
              at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:947)
              at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1126)
              at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:739)
              at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1489)
              at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:454)
              at android.os.Handler.handleCallback(Handler.java:615)
              at android.os.Handler.dispatchMessage(Handler.java:92)
              at android.os.Looper.loop(Looper.java:137)
              at android.app.ActivityThread.main(ActivityThread.java:4921)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:511)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>