mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 08:54:32 +00:00
checking that background image was actually loaded
This commit is contained in:
parent
d8e0b4eb26
commit
03b3ac9143
@ -870,6 +870,15 @@ public class AreaViewer extends VisPlugin {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
tracker.waitForAll();
|
tracker.waitForAll();
|
||||||
|
if (tracker.isErrorAny()) {
|
||||||
|
logger.fatal("Error when loading image: ");
|
||||||
|
for (Object errorObject: tracker.getErrorsAny())
|
||||||
|
logger.fatal("> " + errorObject);
|
||||||
|
}
|
||||||
|
if (image == null) {
|
||||||
|
logger.fatal("Image is null, aborting");
|
||||||
|
return;
|
||||||
|
}
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
logger.fatal("Interrupted during image loading, aborting");
|
logger.fatal("Interrupted during image loading, aborting");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user