Skip to content

Commit

Permalink
Merge pull request #20474 from wordpress-mobile/issue/20473
Browse files Browse the repository at this point in the history
Fixes: NullPointerException in GutenbergEditorFragment
  • Loading branch information
AjeshRPai authored Mar 15, 2024
2 parents 9ded431 + 013779b commit e9d3fbb
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 e9d3fbb

Please sign in to comment.