ComputerScienceHouse/Drink-JS — Issue #11: crash report 2011.10.23
Author: clockfort
Created: 2011-10-23 15:56:18+00:00
State: open

/home/drink/drink/drink_server/drink_machine.js:38
if(stats[i].available == 1 && results.available < 1){
^
TypeError: Cannot read property 'available' of undefined
at /home/drink/drink/drink_server/drink_machine.js:38:36
at /home/drink/drink/drink_server/mysql.js:68:29
at Query. (/usr/local/lib/node_modules/mysql/lib/client.js:108:11)
at Query.emit (events.js:61:17)
at Query._handlePacket (/usr/local/lib/node_modules/mysql/lib/query.js:51:14)
at Client._handlePacket (/usr/local/lib/node_modules/mysql/lib/client.js:312:14)
at Parser. (native)
at Parser.emit (events.js:64:17)
at /usr/local/lib/node_modules/mysql/lib/parser.js:71:14
at Parser.write (/usr/local/lib/node_modules/mysql/lib/parser.js:576:7)