소스코드:
try {
return categoryRepository.new {
this.name = categoryName
this.displayItem = displayItem.toExposedBlob()
}.toCategory()
} catch (e: EOFException) {
println("EOFException occurred while converting ItemStack to Blob: ${e.message}")
e.printStackTrace()
return null
}
테스트 버전: 1.21.4
테스트 아이템: 종이
