When I try to lock a line in my table, sometimes null is returned. What does that mean? I verify that the domain instance was not null before the lock:
println state
state = State.lock(state.id)
println state
This outputs:
State 1
null
("State 1" is the String representation of state)