mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 03:46:18 -04:00
Fix NPE when version json missing "libraries"
This commit is contained in:
parent
5d232c3f5e
commit
e79a95b885
@ -61,7 +61,7 @@ public class Version implements Comparable<Version>, Validation {
|
||||
this.jar = jar;
|
||||
this.assetIndex = assetIndex;
|
||||
this.assets = assets;
|
||||
this.libraries = new LinkedList<>(libraries);
|
||||
this.libraries = libraries == null ? new LinkedList<>() : new LinkedList<>(libraries);
|
||||
this.compatibilityRules = compatibilityRules == null ? null : new LinkedList<>(compatibilityRules);
|
||||
this.downloads = downloads == null ? null : new HashMap<>(downloads);
|
||||
this.logging = logging == null ? null : new HashMap<>(logging);
|
||||
|
Loading…
x
Reference in New Issue
Block a user