Closed cjb closed 10 years ago
Hi, I saw this again. I'd just identified with nickserv, and I clicked the close button on the nickserv privmsg window (which didn't make it disappear?) and then the same crash as above for a different channel.
And again, another time. I don't think I was interacting with Subway when it happened this time, was just in response to a new channel message coming in.
I guess the good news is that this happens within five mins of me launching Subway, so we aren't going to have problems getting it to reproduce here. :)
Should be fixed now
Confirmed fixed.
Just saw this again :( Pretty sure it's related to closing a server status window.
/home/ubuntu/subway/node_modules/irc/lib/irc.js:664
throw err;
^
TypeError: Cannot call method 'get' of undefined
at app.models.Connection.Backbone.Model.extend.addMessage (/home/ubuntu/subway/src/js/models/models.js:98:59)
at util.handle_irc (/home/ubuntu/subway/src/js/handle_irc.js:62:16)
at Client.<anonymous> (/home/ubuntu/subway/lib/connection.js:69:7)
at Client.EventEmitter.emit (events.js:117:20)
at /home/ubuntu/subway/node_modules/irc/lib/irc.js:661:22
at Array.forEach (native)
at Socket.<anonymous> (/home/ubuntu/subway/node_modules/irc/lib/irc.js:655:15)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
I see it's at a different line of code this time (src/js/models/models.js:98) and that line still uses app.irc.getActiveChannel()
.
On refactor branch: