Skip to content

Commit

Permalink
Fixed NPE when report data is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
gomezd committed Aug 13, 2012
1 parent c42d865 commit ef5b397
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -124,7 +124,7 @@ private void generateFileReports() throws JSONException{
* @return The filenames tracked in the report.
*/
public String[] getFilenames(){
String[] filenames = JSONObject.getNames(data);
String[] filenames = data.length() > 0 ? JSONObject.getNames(data) : new String[]{};
Arrays.sort(filenames);
return filenames;
}
Expand Down

0 comments on commit ef5b397

Please sign in to comment.