From 5b84d73cfde9886c96f147ad3e46b4663bc1c812 Mon Sep 17 00:00:00 2001 From: Aditi Bhatia Date: Tue, 4 Jun 2024 17:46:39 -0700 Subject: [PATCH] Revert "Update GutenbergContainerFragment.java" This reverts commit dfccdf85c3d60c081f736251e88a72c4e8aea933. --- .../android/editor/gutenberg/GutenbergContainerFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergContainerFragment.java b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergContainerFragment.java index 9d6743a99dc3..3084e5ad16ee 100644 --- a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergContainerFragment.java +++ b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergContainerFragment.java @@ -315,7 +315,7 @@ public void updateCapabilities(GutenbergPropsBuilder gutenbergPropsBuilder) { // We want to make sure that activity isn't null // as it can make this crash to happen: https://github.com/wordpress-mobile/WordPress-Android/issues/13248 final Activity activity = getActivity(); - if (activity != null && gutenbergPropsBuilder != null) { + if (activity != null) { GutenbergProps gutenbergProps = gutenbergPropsBuilder.build(activity, mHtmlModeEnabled); mWPAndroidGlueCode.updateCapabilities(gutenbergProps); }