java.lang.RuntimeException: Unable to resume activity {com.entitcs.office_attendance/com.entitcs.office_attendance.activities.CreateOfficeLandmark}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3715) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3755) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1732) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:192) at android.app.ActivityThread.main(ActivityThread.java:6754) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:828) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference at com.entitcs.office_attendance.activities.CreateOfficeLandmark.setAddress(CreateOfficeLandmark.java:525) at com.entitcs.office_attendance.activities.CreateOfficeLandmark.onResume(CreateOfficeLandmark.java:538) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1361) at android.app.Activity.performResume(Activity.java:7274) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3690) ... 8 more