} else if (output[i] == 0){
} else if (output[i] == 0 && shift != -1){
    public void listLimboTransactions() throws SQLException {        OutputStream saveOut = getLogger();        try {            ByteArrayOutputStream out = new ByteArrayOutputStream();            PrintStream ps = new PrintStream(saveOut);            setLogger(out);            executeRepairOperation(ISCConstants.isc_spb_rpr_list_limbo_trans);            byte output[] = out.toByteArray();            int trId = 0, shift = 0;            for (int i = 0; i < output.length; i++){                if (output[i] == ISCConstants.isc_spb_single_tra_id){                    trId = 0;                    shift = 0;                } else if (output[i] == 0){                    ps.println(trId);                } else {                    trId += ((output[i] & 0xff) << shift);                    shift += 8;                }            }        } finally {            setLogger(saveOut);        }    }