MAINT-3981 FIXED [SECURITY] Notecard being passed around that crashes any V3 based viewer when opened

AndreyL ProductEngine 2014-05-08 19:20:20 +03:00
parent a5568f942b
commit 794523d81d
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ public:
/*virtual*/ bool getDimensions(S32 first_char, S32 num_chars, S32& width, S32& height) const
{
if (num_chars == 0)
if (num_chars == 0 || !mImage)
{
width = 0;
height = 0;