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) {
|
||||
startTurnLabel.setText("Es wurden weniger als " + points + " Punkte ausgelegt.");
|
||||
startTurnLabel.setText("Es wurden weniger als " + points
|
||||
+ " Punkte ausgelegt.");
|
||||
}
|
||||
|
||||
void setInitialMeldFirstError() {
|
||||
|
@ -111,16 +112,21 @@ class StartTurnPanel extends JPanel {
|
|||
}
|
||||
|
||||
public void setType(BottomPanelType type) {
|
||||
if (type == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
case START_TURN_PANEL:
|
||||
startTurnButton.setText("Zug beginnen");
|
||||
buttonEvent = startTurnEvent;
|
||||
break;
|
||||
case INVALID_TURN_PANEL:
|
||||
startTurnLabel.setText("Es liegen ung\u00FCltige Serien auf dem Tisch.");
|
||||
startTurnButton.setText("N\u00E4chster Spieler");
|
||||
buttonEvent = acknowledgeInvalidEvent;
|
||||
break;
|
||||
case START_TURN_PANEL:
|
||||
startTurnButton.setText("Zug beginnen");
|
||||
buttonEvent = startTurnEvent;
|
||||
break;
|
||||
case INVALID_TURN_PANEL:
|
||||
startTurnLabel
|
||||
.setText("Es liegen ung\u00FCltige Serien auf dem Tisch.");
|
||||
startTurnButton.setText("N\u00E4chster Spieler");
|
||||
buttonEvent = acknowledgeInvalidEvent;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue