zD12 / pircbotx

Automatically exported from code.google.com/p/pircbotx
0 stars 0 forks source link

QUITEvent not working properly #189

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have someone quit in a channel the bot is in
2.
3.

What is the expected output? What do you see instead?

I expect my QUITEvent to be registered so I may continue with my caching 
system. Instead I get - 
[2014/07/29 04:49:52] [botPool0-bot6] [ERROR] org.pircbotx.PircBotX - Exception 
encountered when parsing line
java.lang.NullPointerException: null key in entry: null=Channel(name=#chat, 
channelId=f62a9d66-6a04-441a-8be7-634ea6e6b2ef, dao=null, bot=Version{PircBotX 
2.1-SNAPSHOT, a fork of PircBot, the Java IRC bot - pircbotx.googlecode.com} 
Connected{true} Server{irc.electrocode.net} Port{6667} Password{null}, 
output=org.pircbotx.Channel$1@5b9166d9, mode=, topic=Welcome to 
08Electro07Code! | Stats: http://x0.no/epzb | Register on 
https://electrocode.net ! | Wanna be in a youtube video? PM Iota for details, 
topicTimestamp=1406550679000, createTimestamp=1336787893, topicSetter=Iota, 
moderated=false, noExternalMessages=true, inviteOnly=false, secret=false, 
channelPrivate=false, topicProtection=true, channelLimit=-1, channelKey=null, 
modeStale=false, modeLatch=null)
        at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:31)
        at com.google.common.collect.ImmutableMultimap$Builder.put(ImmutableMultimap.java:169)
        at org.pircbotx.UserChannelMap.createSnapshot(UserChannelMap.java:106)
        at org.pircbotx.UserChannelDao.createSnapshot(UserChannelDao.java:295)
        at org.pircbotx.InputParser.processCommand(InputParser.java:544)
        at org.pircbotx.InputParser.handleLine(InputParser.java:353)
        at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:283)
        at org.pircbotx.PircBotX.connect(PircBotX.java:244)
        at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:219)
        at org.pircbotx.MultiBotManager$BotRunner.call(MultiBotManager.java:212)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

What version of the product are you using? On what operating system?
PircBotX - 2.1-SNAPShot

Please provide any additional information below.

Original issue reported on code.google.com by jzhou2...@gmail.com on 29 Jul 2014 at 12:51

GoogleCodeExporter commented 9 years ago
This could be considered critical, if only because it allows a workaround to 
Issue #188 by checking if a user has quit and removing said user from the 
authenticated users list. Because as of right now, it is not parsing the QUIT 
message properly AT ALL. The user still exists in getUserChannelDao() even 
after said user has quit.

Original comment by jzhou2...@gmail.com on 29 Jul 2014 at 1:30

GoogleCodeExporter commented 9 years ago
Also worth noting might be that in 2.0.1 UserSnapshot.getChannels() returned 
null. Might be related.

Original comment by lolshoc...@gmail.com on 14 Sep 2014 at 11:41

GoogleCodeExporter commented 9 years ago
This is fixed in the latest build

Original comment by Lord.Qua...@gmail.com on 31 Oct 2014 at 3:34