enter play mode settings options, serializefield null until first reload

Hi, I’m trying to use the enter play mode settings options to disable domain reloading so I can speed up the enter play time in the editor.

I seem to be having an issue that I don’t really understand fully. Upon opening the editor on first play there will always be an error of a null value for a serialized field. If I cause a reload by modifying the code then the value will no longer be null. I expect this behaviour for a non serialized field as described here Insanely Fast Enter-to-Play mode but I don’t really understand why this is happening for a serialized field.

Can anyone explain why this is happening and how I can fix it? I’ve attached a small project with the described problem (unity 2019.3.15f1). Steps to reproduce:

  1. Open the project, press play, see the error
  2. Cause a recompile of the scripts
  3. Error disappears because value is no longer null

5921144–632711–bugreport.zip (36.6 KB)

After talking to a few people I have submitted a bug report as they were all as confused as me and reached the conclusion it was probably a bug. http://fogbugz.unity3d.com/default.asp?1252121_bcol69fcpuak7m66

update: confirmed bug, will be fixed in a future release.