Gson sets absent JSON fields to null even for Kotlin non-null types. Calling copy() on an UpdateInfo where apkHash is null triggers a runtime NPE. Declaring the field as String? and passing ?: "" at the call site is the minimal safe fix. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| model | ||
| UpdateListener.kt | ||
| UpdateSDK.kt | ||
| UpdateWebSocket.kt | ||