Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Temperature flood prevention causing null pointer errors occasionally #25

Open
pvince opened this issue Oct 30, 2012 · 0 comments
Open
Labels

Comments

@pvince
Copy link
Member

pvince commented Oct 30, 2012

The exact error is that there is a null pointer error in, "https://github.com/Hive13/jIRCBot/blob/master/src/org/hive13/jircbot/support/WUndergroundAPI.java" inside the "checkFloodStatus()" function.

I think the issue is as follows:

  1. User checks temperature on Day 1.
  2. 24+ hours later User2 checks temperature.
  3. Sees > 0 events in the log, so no auto-safe, then it removes all items from the list.
  4. I think the problem is when it tries to get an iterator over the empty list, it might be returning a null iterator.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant