[Android] Add NPE validation