Commit 79e14f6c authored by Jarkko Koivikko's avatar Jarkko Koivikko
Browse files

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: default avatarMitch Curtis <mitch.curtis@qt.io>
parent 867cda67
No related merge requests found
Showing with 1 addition and 1 deletion
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment