Skip to content

Commit

Permalink
Merge pull request #370 from ACRA/issue_369
Browse files Browse the repository at this point in the history
Issue-369 Need to return an empty array of unapproved files.
  • Loading branch information
william-ferguson-au committed Feb 14, 2016
2 parents e30522f + ba63bab commit 0e01710
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/acra/file/ReportLocator.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public File getUnapprovedFolder() {
}

public File[] getUnapprovedReports() {
return getUnapprovedFolder().listFiles();
final File[] reports = getUnapprovedFolder().listFiles();
if (reports == null) {
return new File[0];
}
return reports;
}

public File getApprovedFolder() {
Expand Down

0 comments on commit 0e01710

Please sign in to comment.