Skip to content

upgradeResp.Body null reference #90

@lnetx

Description

@lnetx

ExecuteWorkflowAsync方法中,如果只需要更新main程序,那Upgrade的VersionService.Validate接口返回的结果为空,在处理main程序更新的代码中存在upgradeResp.Body空引用的问题

具体代码:_configInfo.UpdateVersions = upgradeResp.Body.OrderBy(x => x.ReleaseDate).ToList();

关联逻辑块代码如下:

if (_configInfo.IsMainUpdate)
{
    _configInfo.UpdateVersions = upgradeResp.Body.OrderBy(x => x.ReleaseDate).ToList();
    _configInfo.LastVersion = mainResp.Body.OrderBy(x => x.ReleaseDate).Last().Version;

    var failed = CheckFail(_configInfo.LastVersion);
    if (failed) return;
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions