avoid nullpointers

the client crashed, because the given user was null