提交 da0843f0 编写于 作者: Y youyong205

modify the npe for ScheduledMailTask

上级 0f4e90f7
......@@ -38,7 +38,6 @@ public class JsonBuilder {
private Gson m_gson = new GsonBuilder().registerTypeAdapter(Timestamp.class, new TimestampTypeAdapter())
.setDateFormat("yyyy-MM-dd HH:mm:ss").setFieldNamingStrategy(m_fieldNamingStrategy).create();
@SuppressWarnings({ "unchecked", "rawtypes" })
public Object parse(String json,Class clz){
return m_gson.fromJson(json, clz);
......@@ -73,6 +72,6 @@ public class JsonBuilder {
String dateFormatAsString = format.format(new Date(src.getTime()));
return new JsonPrimitive(dateFormatAsString);
}
}
}
......@@ -134,7 +134,7 @@ public class ScheduledMailTask implements Task, LogEnabled {
Transaction t = Cat.newTransaction("ScheduledReport", domain);
try {
String names = report.getNames();
String names = String.valueOf(report.getNames());
String content = renderContent(names, domain);
String title = renderTitle(names, domain);
List<String> emails = m_scheduledManager.queryEmailsBySchReportId(report.getId());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册