Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb3623cf authored by Aline Freitas's avatar Aline Freitas Committed by Marvin W.
Browse files

Check if callback is non nil. Fixes #340 #364. (#385)

parent 0e766d45
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -545,12 +545,14 @@ public class GoogleMapImpl extends IGoogleMapDelegate.Stub
            @Override
            public void run() {
                Log.d(TAG, "Announce map loaded");
                if (callback != null) {
                    try {
                        callback.onMapLoaded();
                    } catch (RemoteException e) {
                        Log.w(TAG, e);
                    }
                }
            }
        }, 5000);
    }