@@ -582,7 +582,7 @@ namespace IMCS
// 删除map中对应的bean
opcServerMap.Remove(opcBody.ServerUrl);
// 断开连接
- if (opcServer.Session != null)
+ if (opcServer!=null && opcServer.Session != null)
{
opcServer.Disconnect();
}