@@ -1121,7 +1121,7 @@ public class MESHelperServiceImpl implements MESHelperService {
case "OK":
break;
case "NG":
- if (iErrCode == "")
+ if (iErrCode.equals("")||iErrCode==null)
{
oErrMessage = "测试结果为NG时必须传递不良代码";
rmap.put("oErrMessage",oErrMessage);