IllegalStateException on determining winner midgame - crash
1600555789726 :rhum!rhum@net-hmv.bk8.qdcu08.IP PRIVMSG #poker :.check 1600555789729 ### Your implementation of PircBot is faulty and you have 1600555789729 ### allowed an uncaught Exception or Error to propagate in your 1600555789729 ### code. It may be possible for PircBot to continue operating 1600555789729 ### normally. Here is the stack trace that was produced: - 1600555789729 ### 1600555789729 ### java.lang.IllegalStateException 1600555789729 ### at me.ars.pokerbot.Hand.compareTo(Hand.java:464) 1600555789729 ### at me.ars.pokerbot.Hand.compareTo(Hand.java:10) 1600555789729 ### at java.base/java.util.Collections$ReverseComparator.compare(Collections.java:5212) 1600555789729 ### at java.base/java.util.Collections$ReverseComparator.compare(Collections.java:5203) 1600555789729 ### at java.base/java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) 1600555789729 ### at java.base/java.util.TimSort.sort(TimSort.java:220) 1600555789729 ### at java.base/java.util.Arrays.sort(Arrays.java:1515) 1600555789729 ### at java.base/java.util.ArrayList.sort(ArrayList.java:1750) 1600555789729 ### at java.base/java.util.Collections.sort(Collections.java:179) 1600555789729 ### at me.ars.pokerbot.PokerBot.nextTurn(PokerBot.java:532) 1600555789729 ### at me.ars.pokerbot.PokerBot.onMessage(PokerBot.java:223) 1600555789729 ### at org.jibble.pircbot.PircBot.handleLine(PircBot.java:1009) 1600555789729 ### at org.jibble.pircbot.InputThread.run(InputThread.java:92)
Player 1 hand - 2 of clubs, 5 of hearts Player 2 hand - 2/4