pinyin: Prevent crash when pinyin dictionary cannot be loaded
In case the pinyin (system) dictionary cannot be found, the pinyin
engine is nullptr. This can lead to a crash when update() is called.
Prevent the crash by adding a nullptr check.
Fixes: QTBUG-68412
Pick-to: 5.15 6.1 6.2
Change-Id: I04a13ff3abe4aef4a6edd2986aa943fc6d3d995d
Reviewed-by:
Mitch Curtis <mitch.curtis@qt.io>
Showing
Please register or sign in to comment