自动处理增加逻辑判断,没有到调用分析步骤导致空指针问题修改
自动处理增加逻辑,调用dll分析后如果失败了,将分析失败的内容添加到errorLog中
This commit is contained in:
parent
11f942072b
commit
6b545ab96c
|
@ -172,7 +172,7 @@ public class ParsingProcessLog extends AbstractAutoLogOrReport{
|
|||
this.setDetAndGasIdLog();
|
||||
//获取analyseResult
|
||||
BgAnalyseResult analyseResult = sample_B_Analysis.analyseResult;
|
||||
if (StringUtils.isNotBlank(analyseResult.error_log) && !analyseResult.error_log.equalsIgnoreCase("no error.")) {
|
||||
if (Objects.nonNull(analyseResult) && !analyseResult.analyse_flag) {
|
||||
analysisResultFlag = true;
|
||||
}
|
||||
//如果分析结果错误
|
||||
|
|
|
@ -227,6 +227,7 @@ public class Sample_B_Analysis implements BlockConstant {
|
|||
System.out.println(analyseResult);
|
||||
this.analyseResult = analyseResult;
|
||||
if(Objects.isNull(analyseResult) || !analyseResult.analyse_flag){
|
||||
ErrorLogManager.getInstance().write(new SpectrumErrorEvent(new Date(), analyseResult.error_log, this.phdFileName));
|
||||
throw new BAnalyseException("THE PHD file cannot be parsed:"+this.sampleFileFinalPath+","+this.gasFileFinalPath+","+this.detFileFinalPath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user