Closed MRezaNasirloo closed 1 year ago
@MRezaNasirloo Can you provide the whole stacktrace?
Can you test using a specific default value (let say 0 for integer), because I noticed that the model behind Var
cannot deduce the type of the variable correctly when you pass null
as default value.
Thank you for your feedback.
Expected Behavior
Get an Integer or Double value from leanplum variable using
Actual Behavior
Crashing with an exception:
or
This doesn't happen all time, most of the time it works
Steps to Reproduce the Problem
private val _variable: Var<Double/Int?> = Var.define("variable", null)
Specifications