File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ package com.fasterxml.jackson.module.kotlin.test.github
2
+
3
+ import com.fasterxml.jackson.databind.json.JsonMapper
4
+ import com.fasterxml.jackson.module.kotlin.KotlinFeature
5
+ import com.fasterxml.jackson.module.kotlin.KotlinModule
6
+ import com.fasterxml.jackson.module.kotlin.convertValue
7
+ import kotlin.test.Test
8
+ import kotlin.test.assertNull
9
+
10
+ class GitHub757 {
11
+ @Test
12
+ fun test () {
13
+ val kotlinModule = KotlinModule .Builder ()
14
+ .enable(KotlinFeature .StrictNullChecks )
15
+ .build()
16
+ val mapper = JsonMapper .builder()
17
+ .addModule(kotlinModule)
18
+ .build()
19
+ val convertValue = mapper.convertValue<String ?>(null )
20
+ assertNull(convertValue)
21
+ }
22
+ }
You can’t perform that action at this time.
0 commit comments