Skip to content
Snippets Groups Projects
Commit 2a51276f authored by Karl Mortensen's avatar Karl Mortensen
Browse files

code review comments included

parent 295ceba7
No related branches found
No related tags found
No related merge requests found
/*
* Sleuth Kit Data Model
*
* Copyright 2012-2014 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sleuthkit.datamodel;
import java.util.List;
......
......@@ -2728,7 +2728,7 @@ public LayoutFile addCarvedFile(String carvedFileName, long carvedFileSize, long
* @throws org.sleuthkit.datamodel.TskCoreException
*/
public List<LayoutFile> addCarvedFiles(List<CarvedFileContainer> filesToAdd) throws TskCoreException {
if (filesToAdd != null) {
if (filesToAdd != null && filesToAdd.isEmpty() == false) {
CaseDbTransaction localTrans = beginTransaction();
CaseDbConnection connection = localTrans.getConnection();
acquireExclusiveLock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment