checking that background image was actually loaded
This commit is contained in:
parent
d8e0b4eb26
commit
03b3ac9143
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue