Skip to content

Commit

Permalink
Fixes: NullPointerException in GutenbergEditorFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
pantstamp committed Mar 14, 2024
1 parent b3c7fcf commit 013779b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,10 @@ public void setJetpackSsoEnabled(boolean jetpackSsoEnabled) {
public void updateCapabilities(GutenbergPropsBuilder gutenbergPropsBuilder) {
mCurrentGutenbergPropsBuilder = gutenbergPropsBuilder;
if (isAdded()) {
getGutenbergContainerFragment().updateCapabilities(gutenbergPropsBuilder);
GutenbergContainerFragment containerFragment = getGutenbergContainerFragment();
if (containerFragment != null) {
containerFragment.updateCapabilities(gutenbergPropsBuilder);
}
} else {
mUpdateCapabilitiesOnCreate = true;
}
Expand Down

0 comments on commit 013779b

Please sign in to comment.