diff --git a/src/main/scala/org/scadcop/solver/decentralized/mgm2/AgentBehaviour.scala b/src/main/scala/org/scadcop/solver/decentralized/mgm2/AgentBehaviour.scala index c1d9071f08c27e1e4e0160212eb864df9f5871dd..30e0934538c72ad1cc2dee683310c061d365f129 100755 --- a/src/main/scala/org/scadcop/solver/decentralized/mgm2/AgentBehaviour.scala +++ b/src/main/scala/org/scadcop/solver/decentralized/mgm2/AgentBehaviour.scala @@ -494,6 +494,11 @@ class AgentBehaviour(variable: Variable, if (debug) println(s"$variable in $stateName has received Act(false)") if (trace) println(s"$variable -> Supervisor : I didn't change = InformValue(${mind.context.getValue(variable).get})") supervisor ! InformValue(mind.context.getValue(variable).get) + val partner: Variable = mind.partner match { + case Some(p) => p + case None => throw new RuntimeException(s"Error $variable is committed but lacks a partner in state $stateName") + } + directory.addressOf(partner) ! GiveNoGo unstashAll goto(Continue) using mind