p-blomberg/yamosg — Issue #2: Server crashes if client sends OBJACTION <invalid_id>
Author: p-blomberg
Created: 2011-12-28 11:35:45+00:00
State: open

Reported by project member Slaaafs, May 18, 2010
Traceback (most recent call last):
File "yamosgd.py", line 6, in
s.main()
File "/Users/slafs/yamosg_google/trunk/server/serversocket.py", line 91, in main
if lines: self.readCall(socket_, lines)
File "/Users/slafs/yamosg_google/trunk/server/server.py", line 25, in readCall
response=self.game.clients[clientsocket].command(line)+self._split
File "/Users/slafs/yamosg_google/trunk/server/server.py", line 58, in command
response=commands[command](self, parts)
File "/Users/slafs/yamosg_google/trunk/server/server.py", line 150, in ObjAction
obj=self.objects[obj_id]
IndexError: list index out of range