Fix crash when submitting empty player signature

This commit is contained in:
阁主 authored and Melledy committed 2025-11-20 23:16:53 -08:00
1 parent f128b93210
commit e25d58d7f5
1 file changed
+1 -1
@@ -17,7 +17,7 @@ public class HandlerPlayerSignatureEdit extends NetHandler {
var req = PlayerSignatureEditReq.parseFrom(message);
var signature = req.getSignature();
if (signature == null) {
if (signature == null || signature.isEmpty()) {
return session.encodeMsg(NetMsgId.player_signature_edit_failed_ack);
}