Added Null check. Doesnt crash anymore