Fix null pointer dereferences
Fix null pointer dereferences

Avoid null pointer dereference

Resolves: LE-9084
Change-Id: I17465d76b0135e5139eda17b91f902da22441b79

legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af