int howmany = digests.size();
int howmany = digests != null ? digests.size() : 0;
    public static void main(String args[]) {        Zimbra.toolSetup("WARN");        sStore = StoreManager.getInstance();        Connection conn = null;        try {            int numFixed = 0;            conn = DbPool.getConnection();            System.out.println("Getting mailbox list...");            List<Mbox> mboxList = getMboxList(conn);            for (Mbox m : mboxList) {                int mboxId = m.getId();                System.out.println("Processing mailbox " + mboxId + " (" + m.getEmail() + ") ...");                System.out.println("Getting wiki items needing fixup...");                List<WikiDigest> digests = getWikiDigests(mboxId);                int howmany = digests.size();                System.out.println("Got " + howmany + " wiki items to fixup.");                if (howmany > 0) {                    fixupItems(conn, mboxId, digests);                    numFixed += howmany;                }                System.out.println("Done with mailbox " + mboxId + ".");            }            System.out.println("Done.  Fixed " + numFixed + " wiki items.");        } catch (Exception e) {            System.err.println("Error: " + e.getMessage());            e.printStackTrace(System.err);        } finally {            DbPool.quietClose(conn);            sStore.shutdown();        }    }