import javax.imageio.ImageIO;
+import net.sf.openrocket.util.BugException;
+
/**
* An individual slide in a guided tour. It contains a image (or reference to an
* image file) plus a text description (in HTML).
if (url != null) {
img = ImageIO.read(url);
} else {
- //FIXME
- img = null;
+ throw new BugException("Could not find image " + imageFile);
}
} catch (IOException e) {
- // FIXME
- img = null;
+ throw new BugException("Error reading image " + imageFile, e);
}
return img;