Skip to content

Commit f1b1308

Browse files
committed
♻️ NPE 수정
1 parent 41864be commit f1b1308

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

backend/src/main/java/io/f1/backend/domain/game/app/RoomService.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,13 @@
3131
import io.f1.backend.domain.game.store.RoomRepository;
3232
import io.f1.backend.domain.quiz.app.QuizService;
3333
import io.f1.backend.domain.quiz.entity.Quiz;
34-
35-
import lombok.RequiredArgsConstructor;
36-
37-
import org.hibernate.boot.model.naming.IllegalIdentifierException;
38-
import org.springframework.context.ApplicationEventPublisher;
39-
import org.springframework.stereotype.Service;
40-
4134
import java.util.List;
4235
import java.util.Map;
4336
import java.util.Optional;
4437
import java.util.concurrent.atomic.AtomicLong;
38+
import lombok.RequiredArgsConstructor;
39+
import org.springframework.context.ApplicationEventPublisher;
40+
import org.springframework.stereotype.Service;
4541

4642
@Service
4743
@RequiredArgsConstructor
@@ -93,7 +89,7 @@ public void enterRoom(RoomValidationRequest request) {
9389
throw new IllegalArgumentException("401 비밀번호가 일치하지 않습니다.");
9490
}
9591

96-
room.getUserIdSessionMap().put(getCurrentUserId(), null);
92+
room.getUserIdSessionMap().put(getCurrentUserId(), "");
9793
}
9894

9995
public RoomInitialData initializeRoomSocket(Long roomId, String sessionId) {

0 commit comments

Comments
 (0)