Fix NullPointerException on pause mode
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@468 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
6ffc2c38a2
commit
1bddf11ce0
1 changed files with 22 additions and 16 deletions
|
@ -72,7 +72,8 @@ class StartTurnPanel extends JPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
void setInitialMeldError(int points) {
|
void setInitialMeldError(int points) {
|
||||||
startTurnLabel.setText("Es wurden weniger als " + points + " Punkte ausgelegt.");
|
startTurnLabel.setText("Es wurden weniger als " + points
|
||||||
|
+ " Punkte ausgelegt.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void setInitialMeldFirstError() {
|
void setInitialMeldFirstError() {
|
||||||
|
@ -111,13 +112,18 @@ class StartTurnPanel extends JPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setType(BottomPanelType type) {
|
public void setType(BottomPanelType type) {
|
||||||
|
if (type == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case START_TURN_PANEL:
|
case START_TURN_PANEL:
|
||||||
startTurnButton.setText("Zug beginnen");
|
startTurnButton.setText("Zug beginnen");
|
||||||
buttonEvent = startTurnEvent;
|
buttonEvent = startTurnEvent;
|
||||||
break;
|
break;
|
||||||
case INVALID_TURN_PANEL:
|
case INVALID_TURN_PANEL:
|
||||||
startTurnLabel.setText("Es liegen ung\u00FCltige Serien auf dem Tisch.");
|
startTurnLabel
|
||||||
|
.setText("Es liegen ung\u00FCltige Serien auf dem Tisch.");
|
||||||
startTurnButton.setText("N\u00E4chster Spieler");
|
startTurnButton.setText("N\u00E4chster Spieler");
|
||||||
buttonEvent = acknowledgeInvalidEvent;
|
buttonEvent = acknowledgeInvalidEvent;
|
||||||
break;
|
break;
|
||||||
|
|
Reference in a new issue