Skip to content

Commit

Permalink
Fix for NPE on exit with no connection
Browse files Browse the repository at this point in the history
Fixed logic error and updated changelog for bug fix release 1.10.3.
  • Loading branch information
Phergus committed Oct 19, 2021
1 parent 311ce6f commit 9f0b20e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# MapTool 1.10.3
## Bug Fixes
- [#3074][i3074] Fix NPE crash on exit when connection hasn't been established.

# MapTool 1.10.2
## Bug Fixes
- [#3037][i3037] Fix webp images for getTokenImage(), tblImg() etc..


Expand All @@ -11,9 +16,6 @@
- Translation updates





# MapTool 1.10.0


Expand Down Expand Up @@ -86,6 +88,7 @@ Feature release using OpenJDK 16.

[Change Log for 1.9.3](https://github.com/RPTools/maptool/blob/1.9.3/CHANGE_LOG.md)

[i3074]: https://github.com/RPTools/maptool/issues/3074
[i3025]: https://github.com/RPTools/maptool/issues/3025
[i3023]: https://github.com/RPTools/maptool/issues/3023
[i3017]: https://github.com/RPTools/maptool/issues/3017
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/rptools/maptool/client/MapTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ public static void disconnect() {
}

try {
if (conn != null || conn.isAlive()) {
if (conn != null && conn.isAlive()) {
conn.close();
}
} catch (IOException ioe) {
Expand Down

0 comments on commit 9f0b20e

Please sign in to comment.