mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
prevent NPE
This commit is contained in:
@@ -205,6 +205,7 @@ public abstract class Trigger extends TriggerReplacementBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (saDesc.equals("")) { // in case we haven't found anything better
|
if (saDesc.equals("")) { // in case we haven't found anything better
|
||||||
|
if (sa != null)
|
||||||
saDesc = sa.toString();
|
saDesc = sa.toString();
|
||||||
}
|
}
|
||||||
// string might have leading whitespace
|
// string might have leading whitespace
|
||||||
|
|||||||
@@ -1660,6 +1660,7 @@ public class FSkin {
|
|||||||
w0 = tempCoords[2];
|
w0 = tempCoords[2];
|
||||||
h0 = tempCoords[3];
|
h0 = tempCoords[3];
|
||||||
|
|
||||||
|
if (bim != null)
|
||||||
SkinImage.setImage(s0, bim.getSubimage(x0, y0, w0, h0));
|
SkinImage.setImage(s0, bim.getSubimage(x0, y0, w0, h0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user