android - fix NullPointerExceptions when calling wrapper functions without callback parameter