diff --git a/src/main/kotlin/com/draw/common/converter/GenericJsonConverter.kt b/src/main/kotlin/com/draw/common/converter/GenericJsonConverter.kt index a47895b..a24b4f0 100644 --- a/src/main/kotlin/com/draw/common/converter/GenericJsonConverter.kt +++ b/src/main/kotlin/com/draw/common/converter/GenericJsonConverter.kt @@ -21,8 +21,14 @@ open class GenericJsonConverter(private val typeReference: TypeReference) } } - override fun convertToEntityAttribute(jsonStr: String): T { + override fun convertToEntityAttribute(jsonStr: String?): T? { // Json 문자열 -> Object + + // TODO (larry.x) writerInfo 가 null 인 경우에 jsonStr not-nullable 이어서 + // 실패하는 문제가 있어서 임시로 처리해두었음 + if (jsonStr == null) { + return null + } return try { objectMapper.readValue(jsonStr, typeReference) } catch (e: IOException) {