Skip to content

Commit 6e9b209

Browse files
committed
additional comment explaining helper function
1 parent 222f1ae commit 6e9b209

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aws-crt-kotlin/native/src/aws/sdk/kotlin/crt/http/HttpClientConnectionNative.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ private fun dereferenceUserdata(userdata: COpaquePointer?): StableRef<HttpStream
194194
try {
195195
userdata?.asStableRef<HttpStreamContext>()
196196
} catch (_: NullPointerException) {
197+
// `asStableRef()` can throw `NullPointerException` when target type can't be coerced to HttpStreamContext
197198
null
198199
}
199200

0 commit comments

Comments
 (0)