mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Added EDT guard to ImageCache.getImage to track down possible reasons for http://www.slightlymagic.net/forum/viewtopic.php?p=114857#p114857
This commit is contained in:
@@ -197,6 +197,7 @@ public class ImageCache {
|
|||||||
* Returns the Image corresponding to the key.
|
* Returns the Image corresponding to the key.
|
||||||
*/
|
*/
|
||||||
private static BufferedImage getImage(final String key) {
|
private static BufferedImage getImage(final String key) {
|
||||||
|
FThreads.assertExecutedByEdt(true);
|
||||||
try {
|
try {
|
||||||
return ImageCache._CACHE.get(key);
|
return ImageCache._CACHE.get(key);
|
||||||
} catch (final ExecutionException ex) {
|
} catch (final ExecutionException ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user