Skip to content

Commit 122d1e8

Browse files
rigomateBrutus5000
authored andcommitted
Fix possible null dereferencing
1 parent 0173f58 commit 122d1e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ice-adapter/src/main/java/com/faforever/iceadapter/gpgnet/GPGNetServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ public static Optional<GameState> getGameState() {
238238
*/
239239
public static void close() {
240240
if (currentClient != null) {
241-
currentClient = null;
242241
currentClient.close();
242+
currentClient = null;
243243
clientFuture = new CompletableFuture<>();
244244
}
245245

0 commit comments

Comments
 (0)