Commit 56764b9f authored by Varun Patil's avatar Varun Patil

Fix NPE in CampusMapView

parent 126a5e8e
......@@ -767,7 +767,9 @@ public class CampusMapView extends SubsamplingScaleImageView {
@Override
public boolean onTouchEvent(MotionEvent event) {
mainActivity.setFollowingUser(false);
if (mainActivity != null) {
mainActivity.setFollowingUser(false);
}
return super.onTouchEvent(event);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment