summaryrefslogtreecommitdiff
path: root/offapi/util
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-09-19 17:29:07 +0200
committerAndras Timar <andras.timar@collabora.com>2018-04-20 13:42:18 +0200
commit5d53afc54e0b94f95176b1be7044f556927c1b13 (patch)
tree57bd24cd5fda1df7cb587094eced79c404e596a2 /offapi/util
parent681f953be382aa1b0611f94e04f33c73361264da (diff)
Don't crash when opening templates via WebDAV
When loading a ODT template via HTTP, it crashes LO with an lang::IllegalArgumentException in LockFileCommon::ResolveLinks. This happens when closing the loaded template, as LO tries to remove a not-existing lock. aDocURL at this point is empty, so HasError() is true. As stated in the comment, we don't need a lock for documents created from templates, as this opens an internal copy of the document, so don't mark the teplate document as locked. Change-Id: Ide60020b6287aa67861dbcc8ec1b94f37896b7ef Reviewed-on: https://gerrit.libreoffice.org/42485 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de> (cherry picked from commit f95e7ef38e0bf79fa9662bfd50de612d50ef71de) Reviewed-on: https://gerrit.libreoffice.org/53195 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'offapi/util')
0 files changed, 0 insertions, 0 deletions