From 160ba090a5e80068f61f34fc3d6f49dbb6ad52c5 Mon Sep 17 00:00:00 2001 From: dakotachasesmith Date: Sun, 11 Apr 2021 12:55:33 -1000 Subject: [PATCH] clientrepositorybase: Prevent crash on handleUpdateField if updates are handled in Python and repo does not have owner view --- direct/src/distributed/ClientRepositoryBase.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/distributed/ClientRepositoryBase.py b/direct/src/distributed/ClientRepositoryBase.py index ece578cad7..ba62bb1ee4 100644 --- a/direct/src/distributed/ClientRepositoryBase.py +++ b/direct/src/distributed/ClientRepositoryBase.py @@ -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())