FlightData.cs modified null value exception in MissionPlanner


The error is displayed when opening FlightData.cs, and when I choose to ignore it, change it.
The following is a free change of the color of a font

After the change is completed, the problem that began to run


Commenting out the error code will cause some functions to be unusable. Is there any way to allow it to continue running after the interface is modified?