[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #22676 [Applications/Tor Messenger]: Check if key exists before fetching pref



#22676: Check if key exists before fetching pref
--------------------------------------------+-----------------
     Reporter:  arlolra                     |      Owner:
         Type:  defect                      |     Status:  new
     Priority:  Medium                      |  Milestone:
    Component:  Applications/Tor Messenger  |    Version:
     Severity:  Normal                      |   Keywords:
Actual Points:                              |  Parent ID:
       Points:                              |   Reviewer:
      Sponsor:                              |
--------------------------------------------+-----------------
 User reported error on irc,

 {{{
 ERROR (@ prpl-irc: ircHandlers._handleMessage
 resource:///modules/ircHandlers.jsm:188)
 Error running command sasl with handler SASL CAP:
 {"rawMessage":":lechuck.hackint.org CAP * LS :account-notify away-notify
 cap-notify chghost extended-join multi-prefix sasl tls userhost-in-
 names","command":"CAP","params":["*","LS","account-notify away-notify cap-
 notify chghost extended-join multi-prefix sasl tls userhost-in-
 names"],"origin":"lechuck.hackint.org","tags":{},"source":"","cap":{"subcommand":"LS","parameter":"sasl","disable":false,"sticky":false,"ack":false}
 Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED)
 [nsIPrefBranch.getCharPref]
 }}}

 https://developer.mozilla.org/en-US/Add-
 ons/Code_snippets/Preferences#check_For_Existence

 Probably from,

 {{{
 let ecdsa =
 this.imAccount.wrappedJSObject.prefBranch.getCharPref("ecdsa");
 }}}

 in ircSASL.jsm

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22676>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs