Skip to content

Commit

Permalink
Merge pull request #54 from egor-n/patch-1
Browse files Browse the repository at this point in the history
Fix NullPointerException in LumberYard#cleanUp
  • Loading branch information
Mantas Palaima committed Feb 26, 2016
2 parents a331bc2 + 4436182 commit 39da3ac
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,11 @@ public void cleanUp() {
File dir = getLogDir();
if (dir != null) {
File[] files = dir.listFiles();
for (File file : files) {
if (file.getName().endsWith(LOG_FILE_END)) {
file.delete();
if (files != null) {
for (File file : files) {
if (file.getName().endsWith(LOG_FILE_END)) {
file.delete();
}
}
}
}
Expand Down

0 comments on commit 39da3ac

Please sign in to comment.