lc-compliance: simple_capture: Handle unsupported roles

It's valid for a camera to return a nullptr if the requested set of
roles can not be satisfied. This is not correctly handled by
lc-compliance which instead crashes, fix this.

Signed-off-by: Niklas Söderlund <>
Reviewed-by: Kieran Bingham <>
Tested-by: Nícolas F. R. A. Prado <>
1 file changed