Add nullptr guards to object actions

  • Using shell mode, it's possible to invoke object actions without a valid document, selection object in place, return early in such cases.

  • This is just a hack, the ideal fix would be to make the actions return a value in case of unsuccessfull executions and not invoking the rest of the commands in the sequence.

Fixes: #6001 (closed)

Before After

Merge request reports

Loading