Bug #684
NullReferenceException in Meebey.SmartIrc4net.WhoInfo.Parse()
Status: | Closed | Start: | 01/29/2012 | |
Priority: | High | Due date: | ||
Assigned to: | Mirco Bauer | % Done: | 100% |
|
Category: | Engine IRC | |||
Target version: | 0.8.10.1 | |||
Complexity: | Found in Version: | 0.8.9.2 |
||
Votes: | 0 |
Description
Running into the following exception/bug:
-!- Connection error! Reason: Object reference not set to an instance of an object
Version of Smuxi:
Frontend: GNOME 0.8.9.1 (Debian 0.8.9.1+git-0~79~oneiric1) Engine: 0.8.9.1
Error/exception output from replicating the bug with --debug flag:
2012-01-27 17:10:38,719 [IrcProtocolManager (irc.utopia.net:6667) listener] ERROR Smuxi.Engine.IrcProtocolManager - _Run(): exception in _Listen() occurred! System.NullReferenceException: Object reference not set to an instance of an object at Meebey.SmartIrc4net.WhoInfo.Parse (Meebey.SmartIrc4net.IrcMessageData data) [0x0003e] in /build/buildd/smuxi-0.8.9.1+git/lib/SmartIrc4net/src/IrcClient/WhoInfo.cs:133 at Meebey.SmartIrc4net.IrcClient._Event_RPL_WHOREPLY (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x00000] in /build/buildd/smuxi-0.8.9.1+git/lib/SmartIrc4net/src/IrcClient/IrcClient.cs:2468 at Meebey.SmartIrc4net.IrcClient._HandleEvents (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x0035c] in /build/buildd/smuxi-0.8.9.1+git/lib/SmartIrc4net/src/IrcClient/IrcClient.cs:1302 at Meebey.SmartIrc4net.IrcClient._Worker (System.Object sender, Meebey.SmartIrc4net.ReadLineEventArgs e) [0x00000] in /build/buildd/smuxi-0.8.9.1+git/lib/SmartIrc4net/src/IrcClient/IrcClient.cs:948 at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ReadLineEventArgs (object,Meebey.SmartIrc4net.ReadLineEventArgs) at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ReadLineEventArgs (object,Meebey.SmartIrc4net.ReadLineEventArgs) at Meebey.SmartIrc4net.IrcConnection.ReadLine (Boolean blocking) [0x00097] in /build/buildd/smuxi-0.8.9.1+git/lib/SmartIrc4net/src/IrcConnection/IrcConnection.cs:880 at Meebey.SmartIrc4net.IrcConnection.Listen (Boolean blocking) [0x0000b] in /build/buildd/smuxi-0.8.9.1+git/lib/SmartIrc4net/src/IrcConnection/IrcConnection.cs:819 at Meebey.SmartIrc4net.IrcConnection.Listen () [0x00000] in /build/buildd/smuxi-0.8.9.1+git/lib/SmartIrc4net/src/IrcConnection/IrcConnection.cs:833 at Smuxi.Engine.IrcProtocolManager._Listen () [0x00000] in /build/buildd/smuxi-0.8.9.1+git/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs:1977
Steps to replicate:
NOTE: I only seem to get this error when I connect to a single IRC server. It's a private IRC server and to join the main channel, I have to message a bot to authenticate and the bot then joins you to the room. The room is vastly populated (over 800+ users daily) and I'm able to get into the room using other IRC clients.
- Connect to server
- Message the bot (/msg bot enter #the.channel username password)
- Exception message gets thrown
- Disconnected from the IRC server
Associated revisions
Revision 5ef6b0709457c17cd1c135492232a4bc885ec6f0
[lib/SmartIrc4net] Updated to fix NullReferenceException in WhoInfo.Parse() with empty realnames (closes: #684)
History
Updated by Mirco Bauer 4679 days ago
- Category set to Engine IRC
- Assigned to set to Mirco Bauer
- Priority changed from Normal to High
- Target version changed from 0.8.9 to 0.8.9.2
- Found in Version set to 0.8.9.1
Updated by Mirco Bauer 4679 days ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Updated by Mirco Bauer 4510 days ago
- Status changed from Closed to New
- Target version changed from 0.8.9.2 to 0.8.10.1
- Found in Version changed from 0.8.9.1 to 0.8.9.2
This bug still happens with InspIRCd-2.0 and be reproduced with:
/connect irc irc.voxanon.net /join #anonplusradioThat will lead to a NullReferenceException in Meebey.SmartIrc4net.WhoInfo.Parse() like this:
2012-07-17 19:15:15,353 [IrcProtocolManager (irc.voxanon.net:6667) listener] ERROR Smuxi.Engine.IrcProtocolManager - _Run(): exception in _Listen() occurred! System.NullReferenceException: Object reference not set to an instance of an object at Meebey.SmartIrc4net.WhoInfo.Parse (Meebey.SmartIrc4net.IrcMessageData data) [0x0008a] in /build/buildd/smuxi-0.8.10+git/lib/SmartIrc4net/src/IrcClient/WhoInfo.cs:144 at Meebey.SmartIrc4net.IrcClient._Event_RPL_WHOREPLY (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x00000] in /build/buildd/smuxi-0.8.10+git/lib/SmartIrc4net/src/IrcClient/IrcClient.cs:2474 at Meebey.SmartIrc4net.IrcClient._HandleEvents (Meebey.SmartIrc4net.IrcMessageData ircdata) [0x0035c] in /build/buildd/smuxi-0.8.10+git/lib/SmartIrc4net/src/IrcClient/IrcClient.cs:1302 at Meebey.SmartIrc4net.IrcClient._Worker (System.Object sender, Meebey.SmartIrc4net.ReadLineEventArgs e) [0x00000] in /build/buildd/smuxi-0.8.10+git/lib/SmartIrc4net/src/IrcClient/IrcClient.cs:948 at (wrapper delegate-invoke) Meebey.SmartIrc4net.ReadLineEventHandler:invoke_void__this___object_ReadLineEventArgs (object,Meebey.SmartIrc4net.ReadLineEventArgs) at (wrapper delegate-invoke) Meebey.SmartIrc4net.ReadLineEventHandler:invoke_void__this___object_ReadLineEventArgs (object,Meebey.SmartIrc4net.ReadLineEventArgs) at Meebey.SmartIrc4net.IrcConnection.ReadLine (Boolean blocking) [0x00097] in /build/buildd/smuxi-0.8.10+git/lib/SmartIrc4net/src/IrcConnection/IrcConnection.cs:880 at Meebey.SmartIrc4net.IrcConnection.Listen (Boolean blocking) [0x0000b] in /build/buildd/smuxi-0.8.10+git/lib/SmartIrc4net/src/IrcConnection/IrcConnection.cs:819 at Meebey.SmartIrc4net.IrcConnection.Listen () [0x00000] in /build/buildd/smuxi-0.8.10+git/lib/SmartIrc4net/src/IrcConnection/IrcConnection.cs:833 at Smuxi.Engine.IrcProtocolManager._Listen () [0x00000] in /build/buildd/smuxi-0.8.10+git/src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs:1996A RPL_WHO which triggers this issue looks like this:
:topiary.voxanon.net 352 Mirco #anonplusradio CpGc igot.avhost Voxanon CpGc H
Updated by Mirco Bauer 4510 days ago
- Subject changed from Connection error! Reason: Object reference not set to an instance of an object to NullReferenceException in Meebey.SmartIrc4net.WhoInfo.Parse()
Updated by Mirco Bauer 4510 days ago
- Status changed from New to Closed
Applied in changeset 5ef6b0709457c17cd1c135492232a4bc885ec6f0.