File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/main/java/org/hydev/mcpm/client/list Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,17 @@ public ArrayList<String> listUpdateable(
58
58
// to the list of PluginTrackerModels's version
59
59
60
60
if (rawResult .state () == CheckForUpdatesResult .State .SUCCESS ) {
61
- ArrayList <String > outdatedNames = new ArrayList <>();
62
61
63
62
// get the ids of the plugins that are outdated from result
64
63
ArrayList <String > outdated = new ArrayList <>();
65
64
for (PluginModel pluginModel : rawResult .updatable ().values ()) {
66
- outdated .add (pluginModel .getLatestPluginVersion ().get ().meta ().name ());
65
+ var version = pluginModel .getLatestPluginVersion ();
66
+
67
+ if (version != null ) {
68
+ outdated .add (version .get ().meta ().name ());
69
+ }
67
70
}
68
- return outdatedNames ;
71
+ return outdated ;
69
72
}
70
73
71
74
return new ArrayList <>();
You can’t perform that action at this time.
0 commit comments