Commit f58b96a0 authored by Roman Alifanov's avatar Roman Alifanov

Fix nil pointer panic when kernel is already up to date

parent 86c1df10
......@@ -249,5 +249,8 @@ func (s *KernelUpdatesSource) GetPackageChanges() PackageChanges {
panic("Failed to parse CheckUpgrade: " + err.Error())
}
if parsed.Data.Preview.Changes == nil {
return PackageChanges{}
}
return *parsed.Data.Preview.Changes
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment