From 3777c2f06d433a64004b22b0a136a6506006ee85 Mon Sep 17 00:00:00 2001 From: Aditi Bhatia Date: Tue, 21 May 2024 23:20:19 -0700 Subject: [PATCH] Add Nullable annotation --- .../android/editor/gutenberg/GutenbergContainerFragment.java | 2 +- .../android/editor/gutenberg/GutenbergEditorFragment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..10792f5195d6 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 @@ -311,7 +311,7 @@ public void onRedoPressed() { mWPAndroidGlueCode.onRedoPressed(); } - public void updateCapabilities(GutenbergPropsBuilder gutenbergPropsBuilder) { + public void updateCapabilities(@Nullable 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(); diff --git a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java index c8dc71940370..8176635d89fd 100644 --- a/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java +++ b/libs/editor/src/main/java/org/wordpress/android/editor/gutenberg/GutenbergEditorFragment.java @@ -158,7 +158,7 @@ public class GutenbergEditorFragment extends EditorFragmentAbstract implements private boolean mIsJetpackSsoEnabled; private boolean mEditorDidMount; - private GutenbergPropsBuilder mCurrentGutenbergPropsBuilder; + @Nullable private GutenbergPropsBuilder mCurrentGutenbergPropsBuilder; private boolean mUpdateCapabilitiesOnCreate = false; private String mExternallyEditedBlockOriginalHash = null; private boolean mStoryBlockReplacedSignalWait = false;