Fix NPE while rotating the phone