Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
wginolas committed Jul 23, 2024
1 parent 9a8d9d6 commit d66b10f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion word/Editor/ParagraphContentBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,8 @@ CParagraphContentWithContentBase.prototype.private_UpdateSpellChecking = functio
};
CParagraphContentWithContentBase.prototype.private_UpdateShapeText = function()
{
if (this.Paragraph)
// CryptPad: add additional null check
if (this.Paragraph && this.Paragraph.RecalcInfo && this.Paragraph.RecalcInfo.NeedShapeText)
this.Paragraph.RecalcInfo.NeedShapeText();
};
CParagraphContentWithContentBase.prototype.IsUseInDocument = function()
Expand Down

0 comments on commit d66b10f

Please sign in to comment.