I don't get it: if request returns null, you cannot take its data field without checking it before. Here you have request(...).data.