GODT-1931: fixed bridge crash when checking for update while offline.

This commit is contained in:
Xavier Michelon
2022-10-06 16:09:32 +02:00
parent 756a796e1d
commit cd32f0ff6b

View File

@ -373,7 +373,7 @@ func (s *Service) checkUpdateAndNotify(isReqFromUser bool) {
s.checkUpdate()
version := s.newVersionInfo
if version.Version.String() == "" {
if (version.Version == nil) || (version.Version.String() == "") {
if isReqFromUser {
_ = s.SendEvent(NewUpdateErrorEvent(UpdateErrorType_UPDATE_MANUAL_ERROR))
}