mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Check for null arrays before assigning in SDisplayUtil
This commit is contained in:
@@ -59,7 +59,9 @@ public class SDisplayUtil {
|
|||||||
if (counter != (steps - 1)) {
|
if (counter != (steps - 1)) {
|
||||||
SwingUtilities.invokeLater(new Runnable() { @Override
|
SwingUtilities.invokeLater(new Runnable() { @Override
|
||||||
public void run() {
|
public void run() {
|
||||||
pnl.setBackground(new Color(newR[counter], oldG, oldB, newA[counter]));
|
int r = newR == null ? oldR : newR[counter];
|
||||||
|
int a = newA == null ? oldA : newR[counter];
|
||||||
|
pnl.setBackground(new Color(r, oldG, oldB, a));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user