Skip to content

Commit

Permalink
fixed crash while checking for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriousGuy888 committed Jun 5, 2023
1 parent 72ac8ce commit d49b7a3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion BillzoVillagers.iml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.code.gson:gson:2.8.9" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.md-5:bungeecord-chat:1.16-R0.4" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
<orderEntry type="library" name="Maven: com.github.stefvanschie.inventoryframework:IF:0.10.5" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.discordsrv:discordsrv:1.25.0" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: net.dv8tion:JDA:4.3.0_349" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.jetbrains:annotations:16.0.1" level="project" />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.seriousguy888</groupId>
<artifactId>BillzoVillagers</artifactId>
<version>0.5.0</version>
<version>0.5.1</version>
<packaging>jar</packaging>

<name>BillzoVillagers</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public void checkForUpdates() {
} else {
logger.info("Up to date.");
}
} catch (IOException | InterruptedException ex) {
logger.warning("Failed to get latest version from GitHub.");
} catch (IOException | InterruptedException | NullPointerException ex) {
logger.warning("Error occurred while fetching latest version from GitHub.");
ex.printStackTrace();
logger.warning("Skipped update checking.");
}
}

Expand Down

0 comments on commit d49b7a3

Please sign in to comment.