mirror of
https://github.com/correl/mage.git
synced 2025-04-06 09:13:45 -09: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 = legal.replace("\r\n", "<div style='font-size:5pt'></div>");
|
||||||
legal += "<br>";
|
legal += "<br>";
|
||||||
for (String ruling : rulings) {
|
for (String ruling : rulings) {
|
||||||
if (!ruling.replace(".", "").trim().isEmpty()) {
|
if (ruling != null && !ruling.replace(".", "").trim().isEmpty()) {
|
||||||
legal += "<p style='margin: 2px'>";
|
legal += "<p style='margin: 2px'>";
|
||||||
legal += ruling;
|
legal += ruling;
|
||||||
legal += "</p>";
|
legal += "</p>";
|
||||||
|
|
Loading…
Add table
Reference in a new issue