card plugin fix for null rule in tooltip

This commit is contained in:
Loki 2012-05-05 17:59:25 +04:00
parent 160504ef42
commit 2577f708bf

View file

@ -149,7 +149,7 @@ public class CardInfoPaneImpl extends JEditorPane implements CardInfoPane {
legal = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
legal += "<br>";
for (String ruling : rulings) {
if (!ruling.replace(".", "").trim().isEmpty()) {
if (ruling != null && !ruling.replace(".", "").trim().isEmpty()) {
legal += "<p style='margin: 2px'>";
legal += ruling;
legal += "</p>";