I have a google map in a fragment in my application. Funny thing is that the map loads, but the logcat displays a NullPointerException
google map
fragment
NullPointerException
googleMap = ((SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.map)).getMap();
This worked for me. getSupportFragmentManager() seemed to be causing all the crashes.
getSupportFragmentManager()