mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-11 21:55:34 -04:00
fix[PojavProfile.getAllProfiles()]: Fix crash when accounts.json is malformed
This commit is contained in:
parent
7670c5cf89
commit
8b6fef135e
@ -40,7 +40,9 @@ public class PojavProfile {
|
||||
public static List<MinecraftAccount> getAllProfiles(){
|
||||
List<MinecraftAccount> mcAccountList = new ArrayList<>();;
|
||||
for (String accountName : getAllProfilesList()){
|
||||
mcAccountList.add(MinecraftAccount.load(accountName));
|
||||
if (MinecraftAccount.load(accountName) != null) {
|
||||
mcAccountList.add(MinecraftAccount.load(accountName));
|
||||
}
|
||||
}
|
||||
return mcAccountList;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user