title: MapFragment or MapView getMap() returns null on Lollipop
body: <p>I've been using Google Maps API v2 for a long time on Android 4.x versions without a problem. Now I installed latest Lollipop build on my Nexus devices (5 and 7) trying to materialize the app.</p>
  
  <p>I'd like to point out that everything is ok on KitKiat and the problem I'm describing is poping up only on Lollipop.</p>
  
  <p>In my XML source code I'm using MapFragment (Google Play Services library version 6.1.11). </p>
  
  <pre><code>&lt;fragment android:id="@+id/map"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:name="com.google.android.gms.maps.MapFragment"/&gt;
  </code></pre>
  
  <p>In Java code I'm overriding OnPause() method to reach map:</p>
  
  <pre><code>GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
  </code></pre>
  
  <p>At this line it throws NullPointerException. In debugger app is able to find fragment, however it's not able to return GoogleMap. I've also tried to use MapView. It also throws null.
  The weirdest thing for me is that map loads without a problem on app itself but in code I cant reach it to work with it.</p>