Skip to content

Commit

Permalink
requestparam이 비었을 때 nullpointerexception을 뱉는 버그 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
gidskql6671 committed May 29, 2024
1 parent 6823950 commit b6df46e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import io.swagger.v3.oas.annotations.media.Schema
import io.swagger.v3.oas.annotations.responses.ApiResponse
import io.swagger.v3.oas.annotations.responses.ApiResponses
import io.swagger.v3.oas.annotations.tags.Tag
import knu.dong.onedayonebaek.user.domain.User
import knu.dong.onedayonebaek.common.dto.DateUnit
import knu.dong.onedayonebaek.problem.dto.ProblemDto
import knu.dong.onedayonebaek.common.exception.InvalidReqParamException
import knu.dong.onedayonebaek.common.exception.response.BadRequestResponse
import knu.dong.onedayonebaek.problem.dto.ProblemDto
import knu.dong.onedayonebaek.problem.service.ProblemService
import knu.dong.onedayonebaek.user.domain.User
import org.springframework.security.core.Authentication
import org.springframework.validation.annotation.Validated
import org.springframework.web.bind.annotation.*
Expand Down Expand Up @@ -97,6 +97,7 @@ class ProblemController(private val problemService: ProblemService) {
required = true,
example = "2024-05-25"
)
@RequestParam(required = true)
date: LocalDate,
authentication: Authentication
): Int {
Expand Down

0 comments on commit b6df46e

Please sign in to comment.