mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Prevent a NPE when trying to zoom a card before a single card is selected.
This commit is contained in:
@@ -193,6 +193,10 @@ public enum CardZoomer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void displayCard() {
|
private void displayCard() {
|
||||||
|
if (thisCard == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
isMouseWheelEnabled = false;
|
isMouseWheelEnabled = false;
|
||||||
setLayout();
|
setLayout();
|
||||||
setImage();
|
setImage();
|
||||||
|
|||||||
Reference in New Issue
Block a user