Fix nullptr for the text geometry. 77/279777/4
authorsarajammal <s.al-jammal@partner.samsung.com>
Wed, 17 Aug 2022 11:59:06 +0000 (14:59 +0300)
committersarajammal <s.al-jammal@partner.samsung.com>
Thu, 18 Aug 2022 12:07:29 +0000 (15:07 +0300)
commit9d379104c45c7979f7dcd1ef2f9df84e8cc902c1
tree8511d64595036caef83bc5d70fcb778579c9061e
parent9f3c9647cddba461622be260d251487e586fdde4
Fix nullptr for the text geometry.

Added if statement for handling the null values of glyph and characters.
That happens when the function GetTextGeometry is called before lay-outing.

Change-Id: I5faa96349c7da69d261902e1b6c14cfbacdaa159
automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextField.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextLabel.cpp
dali-toolkit/internal/text/text-geometry.cpp