mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-21 23:18:49 -05:00
From coverity: listFiles may return null
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2279 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
abf481b39e
commit
1ea2466575
@ -2591,9 +2591,11 @@ public abstract class ExchangeSession {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
for (File file : oldestFiles) {
|
if (oldestFiles != null) {
|
||||||
if (!file.delete()) {
|
for (File file : oldestFiles) {
|
||||||
LOGGER.warn("Unable to delete " + file.getAbsolutePath());
|
if (!file.delete()) {
|
||||||
|
LOGGER.warn("Unable to delete " + file.getAbsolutePath());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user