I would switch these around -- make it `if (queuedReport.getRepeatInterval() != null && queuedReport.getRepeatInterval() > 0)` first, then provide the default action of setting to `STATUS_COMPLETE`.  This will catch the possibility of negative numbers.