mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
card plugin fix for null rule in tooltip
This commit is contained in:
parent
160504ef42
commit
2577f708bf
1 changed files with 1 additions and 1 deletions
|
@ -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>";
|
||||
|
|
Loading…
Reference in a new issue