Skip to content

Commit

Permalink
Add Nullable annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-bhatia committed May 22, 2024
1 parent dfccdf8 commit 3777c2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3777c2f

Please sign in to comment.