Dialog alert implemented but has NullPointer error