if (!getSelectedSprite().readInfo())
int err = getSelectedSprite().readInfo(); if (err < 0)
    private void doSpriteSelectAction()    {        //don't even try if selector is -1        if (getCurrentSprite() == -1)            return;        if (!getSelectedSprite().readInfo())        {            Object opt = JOptionPane.showInputDialog(mainWindow,                "Error decompressing the "                    + battleSpriteNames[getCurrentSprite()] + " sprite (#"                    + getCurrentSprite() + ").", "Decompression Error",                JOptionPane.ERROR_MESSAGE, null, new String[]{"Abort", "Retry",                    "Fail"}, "Retry");            if (opt == null || opt.equals("Abort"))            {                spriteSelector.setSelectedIndex((spriteSelector                    .getSelectedIndex() + 1)                    % spriteSelector.getItemCount());                doSpriteSelectAction();                return;            }            else if (opt.equals("Retry"))            {                spriteSelector.setSelectedIndex(spriteSelector                    .getSelectedIndex());                doSpriteSelectAction();                return;            }            else if (opt.equals("Fail"))            {                getSelectedSprite().initToNull();            }        }        da.setImage(getSelectedSprite().getSprite());        sizeSelector.setSelectedIndex(getSelectedSprite().getSize() - 1);        sizeSelector.repaint();        name.setText(battleSpriteNames[spriteSelector.getSelectedIndex()]);        for (int i = 0; i < EnemyEditor.enemies.length; i++)        {            if (EnemyEditor.enemies[i].getInsidePic() - 1 == spriteSelector                .getSelectedIndex())            {                palSelector.setSelectedIndex(EnemyEditor.enemies[i]                    .getPalette());                palSelector.repaint();                break;            }        }        jsp.updateUI();    }