Skip to content
Snippets Groups Projects
Verified Commit 4aa6eaaa authored by Luc Everse's avatar Luc Everse :passport_control:
Browse files

Remove bad NPE catch

parent faa24d06
Branches
Tags 2.1.3-release
2 merge requests!179Release 2.5.0,!177Submit integration
......@@ -59,7 +59,6 @@ public class Report extends HashMap<String, Object> {
*/
@SuppressWarnings("unchecked")
public String toPrettyString() {
try {
var staticReport = new StringBuilder();
var staticResults = (List<Map<String, Object>>) this.get("static");
......@@ -98,13 +97,6 @@ public class Report extends HashMap<String, Object> {
}
return staticReport.toString();
} catch (NullPointerException ex) {
logger.error("NullPointer exception occurred while printing report", ex);
if (this.get("static") != null) {
return this.get("static").toString();
}
return "Invalid report";
}
}
/**
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment