mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 07:39:00 -04:00
Fix: NPE in Tools.getVersionInfo()
This commit is contained in:
parent
5e8842bcc7
commit
bdb25c196a
@ -744,7 +744,7 @@ public final class Tools {
|
||||
}
|
||||
|
||||
// LabyMod 4 sets version instead of majorVersion
|
||||
if (customVer.javaVersion.majorVersion == 0) {
|
||||
if (customVer.javaVersion != null && customVer.javaVersion.majorVersion == 0) {
|
||||
customVer.javaVersion.majorVersion = customVer.javaVersion.version;
|
||||
}
|
||||
return customVer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user