There should be a null check on `user` here. Looking at the Simperium code I don't think `simperium.getUser()` would ever return null, but worth checking anyway.