提交 8c252dec 编写于 作者: Q qiaojialin 提交者: Jialin Qiao

fix null pointer

上级 9fc0e17b
......@@ -160,7 +160,11 @@ public class TimeSeriesMetadataCache {
}
}
}
return new TimeseriesMetadata(timeseriesMetadata);
if (timeseriesMetadata == null) {
return null;
} else {
return new TimeseriesMetadata(timeseriesMetadata);
}
}
......
......@@ -633,6 +633,9 @@ public class TSServiceImpl implements TSIService.Iface, ServerContext {
return resp;
} catch (Exception e) {
logger.error("{}: Internal server error: ", IoTDBConstant.GLOBAL_DB_NAME, e);
if (e instanceof NullPointerException) {
e.printStackTrace();
}
if (queryId != -1) {
try {
releaseQueryResource(queryId);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册