From 5165d1f3911cf29726e835c91b13249aafe70eb1 Mon Sep 17 00:00:00 2001 From: Andy Valdez Date: Mon, 20 May 2024 18:29:12 -0400 Subject: [PATCH] [Bug] Null check and return false if null. --- .../java/org/wordpress/android/ui/posts/EditPostRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostRepository.kt b/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostRepository.kt index a8ed279ab6bc..f89770ccedee 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostRepository.kt +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/EditPostRepository.kt @@ -75,7 +75,7 @@ class EditPostRepository val status: PostStatus get() = fromPost(getPost()) val isPage: Boolean - get() = post!!.isPage + get() = post?.isPage == true val isLocalDraft: Boolean get() = post!!.isLocalDraft val isLocallyChanged: Boolean