Commit ff50b7d4 by 向延琳

fix:NPE

1 parent 7f185262
......@@ -1811,6 +1811,9 @@ public class VehicleService extends AbstractCommonService {
e.printStackTrace();
}
log.info("调频结果:" + result + ";SN" + model.getSn());
if (result == null) {
throw new AdminException("调频失败");
}
int returnCode = (int) JsonUtils.getProperty(result, "result");
if (returnCode != 0) {
throw new AdminException("调频失败");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!