Added null-check to UserCommandManager.update