UI: fixed - errors on card selection in linux (debian)
@@ -35,6 +35,7 @@ public final class ManaSymbolsCellRenderer extends DefaultTableCellRenderer {
String manaCost = (String)value;
manaPanel.removeAll();
manaPanel.setLayout(new BoxLayout(manaPanel, BoxLayout.X_AXIS));
+ if(manaCost != null){
StringTokenizer tok = new StringTokenizer(manaCost, " ");
while (tok.hasMoreTokens()) {
String symbol = tok.nextToken();
@@ -58,6 +59,7 @@ public final class ManaSymbolsCellRenderer extends DefaultTableCellRenderer {
manaPanel.add(symbolLabel);
}
+ }
return manaPanel;
}
