pokoli/ButiJS — Issue #10: Server crashes when the player selects 'Delegar' as thriumph
Author: pokoli
Created: 2012-01-25 18:49:22+00:00
State: open

StackTrace on the server is:

/home/pokoli/udl/mepl/tfm/ButiJS/src/butifarraRound.js:146
var team = this.teams[this.thriumpher.team];
^
TypeError: Cannot read property 'team' of undefined
at Socket. (/home/pokoli/udl/mepl/tfm/ButiJS/src/butifarraRound.js:146:50)
at SocketNamespace.handlePacket (/home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/namespace.js:318:35)
at Manager.onClientMessage (/home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/manager.js:459:38)
at WebSocket.onMessage (/home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/transport.js:387:20)
at Parser. (/home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:40:10)
at Parser.emit (events.js:67:17)
at /home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:286:16
at Parser.expectHandler (/home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:297:15)
at Parser.add (/home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:464:24)
at Parser.expect (/home/pokoli/udl/mepl/tfm/ButiJS/node_modules/socket.io/lib/transports/websocket/hybi-07-12.js:497:10)