Skip to content
Snippets Groups Projects
Commit 128e763a authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Geoffrey Métais
Browse files

Fix NullPointerException

parent 25f8fb78
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,10 @@ public class Medialibrary extends AbstractMedialibrary {
public void run() {
String[] children = oldDir.list();
for (String child : children) {
new File(oldDir, child).delete();
if (children != null) {
for (String child : children) {
new File(oldDir, child).delete();
}
}
oldDir.delete();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment