Fix cppcheck notes "nullPointerRedundantCheck":
Fix cppcheck notes "nullPointerRedundantCheck":

(warning) Either the condition 'XXX' is redundant or there is possible null
pointer dereference: XXX.

psi-im/iris,psi-im/iris,psi-im/iris