First, while Gson converting json string to Kt data class, Gson maybe use 'UnSafe' create data class, and assign 'null' for a NoNull field. And when this object's hashcode() being invoked, a nullPointerException is thrown.
Cause the generated bytecode by kt compiler doesn't check every field, has anybody met this issue yet?
Below shows the generated hashcode by 1.5.20 kt-compiler.
public int hashCode() {
result = this.eventId.hashCode();
return result * 31 + this.voteId.hashCode();
}