Skip to content

Commit

Permalink
Fix Potential NPE In NetworkCache.clearCache (#2364)
Browse files Browse the repository at this point in the history
Co-authored-by: Nathan Shurtz <n.shurtz@fetchrewards.com>
  • Loading branch information
undermark5 and nshurtz committed Aug 19, 2023
1 parent 0014ef6 commit 423665d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void clear() {
if (parentDir.exists()) {
File[] files = parentDir.listFiles();
if (files != null && files.length > 0) {
for (File file : parentDir.listFiles()) {
for (File file : files) {
file.delete();
}
}
Expand Down

0 comments on commit 423665d

Please sign in to comment.