power: check operation is null 55/284655/1 accepted/tizen/unified/20221128.014950
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 22 Nov 2022 10:52:02 +0000 (19:52 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 22 Nov 2022 10:56:08 +0000 (19:56 +0900)
commit7d138e274e8c62aa49fc31615af98eea83d0f929
treeac2743b4043190fab3fd1d7e2784a9e25caf4abe
parent0b807395978a911334d6204ba383d5ea5a244f5d
power: check operation is null

The iot-headless profile has been changed to have display module.
  - display: add dummy display for iot-headless
    (1985b78991d1fe925b827ded4fdae58d1b4e1d7a)

Prevent crash on accessing not existing operation.

Change-Id: I601e4cb8412423ed8ecca9d9c022b366e039690e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power/power-off.c