fixing #252, Android example NPE at onDestroy