|
|
@@ -48,8 +48,10 @@ public class ReportVOWrapper {
|
|
|
|
|
|
public Report unwrap(ReportVO vo){
|
|
|
Report report= Converter.convert(Report.class,vo);
|
|
|
- JSONArray jsonArray=new JSONArray(vo.getReportCases());
|
|
|
- report.setDescription(jsonArray.toString());
|
|
|
+ if(vo.getReportCases()!=null) {
|
|
|
+ JSONArray jsonArray = new JSONArray(vo.getReportCases());
|
|
|
+ report.setDescription(jsonArray.toString());
|
|
|
+ }
|
|
|
return report;
|
|
|
}
|
|
|
}
|