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

TypeError: Cannot set property 'name' of undefined #825

Closed
Longhao-Chen opened this issue Oct 17, 2020 · 1 comment
Closed

TypeError: Cannot set property 'name' of undefined #825

Longhao-Chen opened this issue Oct 17, 2020 · 1 comment

Comments

@Longhao-Chen
Copy link

node_modules/imap/lib/Connection.js:43
node[1065]:       self._box.name = name; 
node[1065]:                      ^       
node[1065]: TypeError: Cannot set property 'name' of undefined                                  
node[1065]:     at Connection.<anonymous> (/var/node/magic_screen/node_modules/imap/lib/Connection.js:431:22)  
node[1065]:     at Connection._resTagged (/var/node/magic_screen/node_modules/imap/lib/Connection.js:1535:22)  
node[1065]:     at Parser.<anonymous> (/var/node/magic_screen/node_modules/imap/lib/Connection.js:194:10)
node[1065]:     at Parser.emit (events.js:198:13)
node[1065]:     at Parser._resTagged (/var/node/magic_screen/node_modules/imap/lib/Parser.js:175:10)
node[1065]:     at Parser._parse (/var/node/magic_screen/node_modules/imap/lib/Parser.js:139:16)
node[1065]:     at Parser._tryread (/var/node/magic_screen/node_modules/imap/lib/Parser.js:82:15) 
node[1065]:     at TLSSocket.Parser._cbReadable (/var/node/magic_screen/node_modules/imap/lib/Parser.js:53:12)
node[1065]:     at TLSSocket.emit (events.js:198:13)  
node[1065]:     at emitReadable_ (_stream_readable.js:555:12)

I think shoud defend self._box = {} instand of self._box = undefined.

@Longhao-Chen
Copy link
Author

I have found the reason.
#546
Thinks.

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

1 participant