title: MapFragment return null
body: <pre><code>mMapFragment = (SupportMapFragment) getSupportFragmentManager()
                  .findFragmentByTag(MAP_FRAGMENT_TAG);
  
          // We only create a fragment if it doesn't already exist.
          if (mMapFragment == null) {
            mMapFragment = SupportMapFragment.newInstance();
  
  
              // Then we add it using a FragmentTransaction.
              FragmentTransaction fragmentTransaction =
                      getSupportFragmentManager().beginTransaction();
              fragmentTransaction.add(MapLay.getId(), mMapFragment, MAP_FRAGMENT_TAG);
               fragmentTransaction.commit();
  
  
              mMap=mMapFragment.getMap();
  </code></pre>
  
  <p>By this code map is visible but unable to access the map</p>
  
  <p>mMap=mMapFragment.getMap(); show null value error how to fix this </p>