Fix wrong order in ternary-operator.
Fix wrong order in ternary-operator.

(Pointed out by XCode-code analyzer as a potential nullptr-dereference
on "data")

stian-svedenborg/xyuv,stian-svedenborg/xyuv,stian-svedenborg/xyuv