if xModel.is() is false then xModel->getCurrentController() is just going to
crash.
like this since it was introduced in
commit eafba82034
Date: Tue Jan 5 22:32:38 2010 +0100
autorecovery: define a new css.document.XDocumentRecovery interface, implement it in both SFX and DBACCESS, and use it in the autorecovery
Change-Id: I8ea43a0679d43cb9b865ecae5260129d17b6a386
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122898
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
UNO Framework
Toolbars, menus, UNO stuff, including accelerators and interaction, etc.