- Basic NPE prevention in showCard, please review (not sure if there's a better way to prevent this NPE that would be more desirable).

This commit is contained in:
Agetian
2014-01-17 14:37:35 +00:00
parent f4606da30f
commit 8921ce16e6

View File

@@ -62,6 +62,10 @@ public enum CPicture implements ICDoc {
*
*/
public void showCard(final Card c, boolean showFlipped) {
if (null == c) {
return;
}
currentCard = c;
displayedState = c.getCurState();
flipIndicator.setVisible(isCurrentCardFlippable());