clientrepositorybase: Prevent crash on handleUpdateField if updates are handled in Python and repo does not have owner view

This commit is contained in:
dakotachasesmith 2021-04-11 12:55:33 -10:00 committed by rdb
parent cbfd8f4545
commit 160ba090a5

View File

@ -469,6 +469,9 @@ class ClientRepositoryBase(ConnectionRepository):
f"Asked to update non-existent DistObj {doId} and failed to find it")
def __doUpdateOwner(self, doId, di):
if not self.hasOwnerView():
return False
ovObj = self.doId2ownerView.get(doId)
if ovObj:
odg = Datagram(di.getDatagram())