BufferedImage tilebmp = ImageIO.read(tilebmpFile); if (tilebmp == null) { throw new Exception("Failed to load " + tilebmpFile);
Image image = ImageIO.read(new File(imgFilename)); if (image == null) { throw new IOException("Failed to load " + tilebmpFile);
    public void importTileBitmap(String imgFilename, TileCutter cutter,                                 boolean createTiles) throws Exception    {        // IOException will propagate upwards when file cannot be found        tilebmpFile = new File(imgFilename);        tilebmpFileLastModified = tilebmpFile.lastModified();        BufferedImage tilebmp = ImageIO.read(tilebmpFile);        if (tilebmp == null) {            throw new Exception("Failed to load " + tilebmpFile);        }        importTileBitmap(tilebmp, cutter, createTiles);    }