Null safety with labels array
@@ -625,12 +625,14 @@ public class UpdateSite {
// compatibility with update sites that have no separate 'deprecated' top-level entry.
// Also do this even if there are deprecations to potentially allow limiting the top-level entry to overridden URLs.
+ if (p.categories != null) {
if (Arrays.asList(p.categories).contains("deprecated")) {
if (!this.deprecations.containsKey(p.name)) {
this.deprecations.put(p.name, new Deprecation(p.wiki));
}
}
}
+ }
connectionCheckUrl = (String)o.get("connectionCheckUrl");
}
