mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixing issue with ImageFetcher with "fake" cards (used in Ante and other places)
This commit is contained in:
@@ -28,6 +28,10 @@ public class ImageFetcher {
|
||||
public static void fetchImage(final CardView card, final String imageKey, final Callback callback) {
|
||||
FThreads.assertExecutedByEdt(true);
|
||||
|
||||
// Fake card (like the ante prompt) trying to be "fetched"
|
||||
if (imageKey.length() < 2)
|
||||
return;
|
||||
|
||||
final String prefix = imageKey.substring(0, 2);
|
||||
final File destFile;
|
||||
final String urlToDownload;
|
||||
|
||||
Reference in New Issue
Block a user