triplea-game / triplea

TripleA is a turn based strategy game and board game engine, similar to Axis & Allies or Risk.
https://triplea-game.org/
GNU General Public License v3.0
1.29k stars 381 forks source link

2.5.22294: DiceRoll#lambda$sortByStrength$1:313 - java.lang.NullPointerException #12648

Closed tripleabuilderbot closed 2 weeks ago

tripleabuilderbot commented 3 weeks ago

Map

a_song_of_ice_and_fire

TripleA Version

2.5.22294

Java Version

11.0.6

Operating System

Windows 10

Memory

Heap utilization statistics [MB] Used Memory: 1446 Free memory: 533 Total memory: 1979 Max memory: 1979

Stack Trace

Exception: java.lang.NullPointerException
java.lang.Exception
    at games.strategy.triplea.delegate.DiceRoll.lambda$sortByStrength$1(DiceRoll.java:313)
    at java.base/java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
    at java.base/java.util.TimSort.sort(TimSort.java:234)
    at java.base/java.util.Arrays.sort(Arrays.java:1515)
    at java.base/java.util.ArrayList.sort(ArrayList.java:1749)
    at games.strategy.triplea.delegate.DiceRoll.sortByStrength(DiceRoll.java:317)
    at games.strategy.triplea.ui.BattleDisplay$BattleModel.refresh(BattleDisplay.java:877)
    at games.strategy.triplea.ui.BattleDisplay.<init>(BattleDisplay.java:162)
    at games.strategy.triplea.ui.BattlePanel.lambda$showBattle$8(BattlePanel.java:263)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)