From ec33b51787fd292530d1735ae4f27d1d26ddbd10 Mon Sep 17 00:00:00 2001 From: b0n541 Date: Fri, 10 Oct 2014 21:30:13 +0200 Subject: [PATCH] issue #28: fixed NullPointerException that occured if the human player tries to play a hand game --- jskat-base/pom.xml | 2 +- jskat-swing-gui/pom.xml | 2 +- jskat-swing-gui/src/main/java/org/jskat/JSkat.java | 2 +- .../java/org/jskat/gui/human/SwingHumanPlayer.java | 10 +++++----- pom.xml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/jskat-base/pom.xml b/jskat-base/pom.xml index 431e56633..152dc5963 100644 --- a/jskat-base/pom.xml +++ b/jskat-base/pom.xml @@ -5,7 +5,7 @@ org.jskat jskat-multimodule - 0.14.1 + 0.14.2 jskat-base diff --git a/jskat-swing-gui/pom.xml b/jskat-swing-gui/pom.xml index 9693c93cf..b289f0124 100644 --- a/jskat-swing-gui/pom.xml +++ b/jskat-swing-gui/pom.xml @@ -5,7 +5,7 @@ org.jskat jskat-multimodule - 0.14.1 + 0.14.2 JSkat diff --git a/jskat-swing-gui/src/main/java/org/jskat/JSkat.java b/jskat-swing-gui/src/main/java/org/jskat/JSkat.java index d068f691b..70b440958 100644 --- a/jskat-swing-gui/src/main/java/org/jskat/JSkat.java +++ b/jskat-swing-gui/src/main/java/org/jskat/JSkat.java @@ -45,7 +45,7 @@ public final class JSkat { private static final Logger LOG = LoggerFactory.getLogger(JSkat.class); - private static final String VERSION = "0.14.1"; //$NON-NLS-1$ + private static final String VERSION = "0.14.2"; //$NON-NLS-1$ /** * Main method diff --git a/jskat-swing-gui/src/main/java/org/jskat/gui/human/SwingHumanPlayer.java b/jskat-swing-gui/src/main/java/org/jskat/gui/human/SwingHumanPlayer.java index 7eed64e23..7a3f5512a 100644 --- a/jskat-swing-gui/src/main/java/org/jskat/gui/human/SwingHumanPlayer.java +++ b/jskat-swing-gui/src/main/java/org/jskat/gui/human/SwingHumanPlayer.java @@ -372,12 +372,12 @@ public void startGame() { private void resetPlayer() { bidValue = 0; - holdBid = null; - playGrandHand = null; - callContra = null; - callRe = null; + holdBid = false; + playGrandHand = false; + callContra = false; + callRe = false; gameAnnouncementStep = GameAnnouncementStep.BEFORE_ANNOUNCEMENT; - pickUpSkat = null; + pickUpSkat = false; discardSkat = null; gameAnnouncement = null; nextCard = null; diff --git a/pom.xml b/pom.xml index 062bad97d..07b3f0f49 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,7 @@ org.jskat jskat-multimodule - 0.14.1 + 0.14.2 Multi module for JSkat pom