Commit c301e50d authored by Michael Ritter's avatar Michael Ritter
Browse files

Add bounds check for the startItem vararg

parent 6c5d5a15
......@@ -125,7 +125,9 @@ public final class AuditThread extends Thread implements CancelCallback {
this.verbose = verbose;
this.coll = c;
this.driver = driver;
if (startItem != null && startItem[0] != null) {
if (startItem != null
&& startItem.length > 0
&& startItem[0] != null) {
baseItemPathList = Arrays.copyOf(startItem, startItem.length);
}
this.setName("audit: " + c.getName());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment