sorry, i meant: please insert proper logging in case of "state == null"