Commit 88d15150 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE

CID #1226305
parent 8031491c
......@@ -144,8 +144,10 @@ public class AudioUtil {
private static void deleteContent(File dir, boolean deleteDir) {
if (dir.isDirectory()) {
File[] files = dir.listFiles();
for (File file : files) {
deleteContent(file, true);
if (files != null && files.length > 0) {
for (File file : files) {
deleteContent(file, true);
}
}
}
if (deleteDir)
......
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