I have no clue what's happening, so I will have to ask this here.
I have an Activity that returns a location as LatLng. I then check if it's null before I pass it to my moveCamera() method that's supposed to show it on a map. 
if(location != null) {
        mapActivity.moveCamera(location);
    }else{
        Toast.makeText(MainActivity.this, "Couldn't determine location",  Toast.LENGTH_SHORT).show();
    }
But although I check for null, when i run it, i get:
 java.lang.NullPointerException: Attempt to invoke virtual method 'void de.ratchetcoding.theotherside.MapsActivity.moveCamera(com.google.android.gms.maps.model.LatLng)' on a null object
Any help is appreciated. If you need the source code tell me, I can upload it to github.
 
    