Skip to content

Commit

Permalink
Merge pull request #5414 from Sleet01/Fix_5413_NPE_when_princess_join…
Browse files Browse the repository at this point in the history
…s_game_and_gets_name_change_packet

Fix #5413: Fix improper drop-through in packet handling switch/case
  • Loading branch information
Sleet01 authored Apr 25, 2024
2 parents bcad8e7 + 2f93a75 commit aace7aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions megamek/src/megamek/client/AbstractClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ protected boolean handleGameIndependentPacket(Packet packet) {
case SERVER_GREETING:
connected = true;
send(new Packet(PacketCommand.CLIENT_NAME, name, isBot()));
break;
case SERVER_CORRECT_NAME:
correctName(packet);
break;
Expand Down

0 comments on commit aace7aa

Please sign in to comment.