我在我的 android 应用程序中使用 firestore。
在下面的代码中,我可以期望异常为非空吗?
FirebaseFirestore.getInstance().collection("items").document("abc").get().addOnCompleteListener(task -> {
if (!task.isSuccessful()) {
Exception e = task.getException();
//Can I expect e to be non null, or do I have to check for null?
}
});