Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse message TypeError: Cannot read property '1' of null #331

Closed
flipflopsimsommer opened this issue Mar 2, 2015 · 3 comments
Closed

Comments

@flipflopsimsommer
Copy link

from time to time when i start my app i get this error, so i guess it happens turing the authendification prozess.
i use freenode and login with password and set sasl to true

node_modules/irc/lib/parse_message.js:39
message.command = match[1];

using the debug option didn't show any additnal data.

iojs version 1-3.1
npm version 2.5.1
node-irc 0.3.9
@trevoranderson
Copy link

I've gotten this as well, but not just at start-up. Wrapping lines 39-40 in an "if(match)" seems to at least avoid crashing there.

For reproduction purposes, match is null if line==="".

@aivot-on
Copy link
Contributor

aivot-on commented Mar 5, 2015

I assume this is the same issue as #325 ?

@brentnk
Copy link

brentnk commented Apr 6, 2015

#318 has addressed this issue but has not been pushed to npm. If you use the latest version from Github the issue should be resolved.

@jirwin jirwin closed this as completed Mar 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants