From 4bc605f09c428ce857b2e1e951af9071bb91d181 Mon Sep 17 00:00:00 2001 From: franck-x Date: Sat, 20 Jan 2024 18:12:53 +0100 Subject: [PATCH] fix: avoid NPE on review edit --- .../android/v2/fragments/review/edit/ReviewEditionFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/ulicae/cinelog/android/v2/fragments/review/edit/ReviewEditionFragment.java b/app/src/main/java/com/ulicae/cinelog/android/v2/fragments/review/edit/ReviewEditionFragment.java index 5a82de80..f82283eb 100644 --- a/app/src/main/java/com/ulicae/cinelog/android/v2/fragments/review/edit/ReviewEditionFragment.java +++ b/app/src/main/java/com/ulicae/cinelog/android/v2/fragments/review/edit/ReviewEditionFragment.java @@ -235,6 +235,7 @@ public void onFabClick() { } private void updateTags() { + if (tagDialog == null) return; for (int i = 0; i < tagDialog.selectedTags.length; i++) { TagDto tag = tagDialog.allTags.get(i); if (tagDialog.selectedTags[i]) {