Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Fix crash on corrupted extra server data
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Aug 11, 2020
1 parent 36cfee8 commit e12b148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=aafae0b8

# Mod Properties
mod_version = 1.3.9
mod_version = 1.3.10
maven_group = net.earthcomputer
archives_base_name = multiconnect

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ public static ServersExt getInstance() {
if (configFile.exists()) {
try (FileReader reader = new FileReader(configFile)) {
instance = GSON.fromJson(reader, ServersExt.class);
instance.normalize();
} catch (IOException e) {
LOGGER.error("Failed to load extra server data", e);
}
}
if (instance == null) {
instance = new ServersExt();
}
instance.normalize();
}
return instance;
}
Expand Down

0 comments on commit e12b148

Please sign in to comment.