mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
Fix NPE
This commit is contained in:
@@ -270,7 +270,7 @@ public final class CMatchUI
|
|||||||
* View deck list.
|
* View deck list.
|
||||||
*/
|
*/
|
||||||
public void viewDeckList() {
|
public void viewDeckList() {
|
||||||
if (!isInGame()) {
|
if (!isInGame() || getCurrentPlayer() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final Deck deck = getGameView().getDeck(getCurrentPlayer());
|
final Deck deck = getGameView().getDeck(getCurrentPlayer());
|
||||||
|
|||||||
Reference in New Issue
Block a user