Fix null pointer crash
Fix null pointer crash

Reviewed-by: David Edmundson
BUG: 299532

KDE/ktp-common-internals,leonhandreke/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals,leonhandreke/ktp-common-internals,KDE/ktp-common-internals