Fix access to undefined object in sheet

This commit is contained in:
yflory 2019-01-28 17:28:13 +01:00
parent 0e61c46dcf
commit 50e814f4d0

View file

@ -586,7 +586,7 @@ define([
handleChanges(obj, send);
break;
case "unLockDocument":
if (obj.releaseLocks && content.locks[getId()]) {
if (obj.releaseLocks && content.locks && content.locks[getId()]) {
send({
type: "releaseLock",
locks: [content.locks[getId()]]