The check introduced in f6f868fe28 takes place too late, as the pointer to ReactorBase.m_thermo has already been dereferenced at this point. Most compilers let this pass, but it is techincally incorrect.
f6f868fe28