null?.copy() is null , you must init intervention or use elvis
Copy code
( intervention.value ?: Intervation() ).copy
n
Nikolas Guillen Leon
05/09/2022, 10:01 AM
sorry, my fault, I forgot to specify: “intervention.value” is certainly not null in that part of code, i’m displaying its other attributes in the View
Nikolas Guillen Leon
05/09/2022, 10:04 AM
I found the problem: I overwrote the equals/hashcode methods of the Intervention class, but I forgot to update them after I added the “error” fields
Nikolas Guillen Leon
05/09/2022, 10:05 AM
I suppose that caused problems with the “copy” method