Commit ceea38d2 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Jérome Perrin

CoreObject enhancement so that it does not crash if the giver/receiver can be none

parent d26bf50e
......@@ -203,7 +203,7 @@ class CoreObject(Process):
# =================== get the giver object in a getEntity transaction. =========================
def getGiverObject(self):
return self.giver.getActiveObject()
return self.giver
# ============== get the giver object queue in a getEntity transaction. ========================
......@@ -212,7 +212,7 @@ class CoreObject(Process):
# ============== get the receiver object in a removeEntity transaction. =======================
def getReceiverObject(self):
return self.receiver.getActiveObject()
return self.receiver
# ========== get the receiver object queue in a removeEntity transaction. ======================
def getReceiverObjectQueue(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment