checking that background image was actually loaded

This commit is contained in:
fros4943 2006-12-06 15:20:18 +00:00
parent d8e0b4eb26
commit 03b3ac9143

View File

@ -870,6 +870,15 @@ public class AreaViewer extends VisPlugin {
try {
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) {
logger.fatal("Interrupted during image loading, aborting");
return;