Found a null pointer when adding assignments. Fixed it