The publication context is checked for NULL in bt_mesh_model_publish() however it was dereferenced before that. Move the assignment to ctx.send_rel to the same place where other ctx members are set.
The publication context is checked for NULL in bt_mesh_model_publish() however it was dereferenced before that. Move the assignment to ctx.send_rel to the same place where other ctx members are set.