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); }