From aa645efe4af21507fa72b758d9ad08959de9a7ce Mon Sep 17 00:00:00 2001 From: amirroth Date: Mon, 9 Dec 2024 12:37:20 -0500 Subject: [PATCH] One more --- src/EnergyPlus/DataSurfaces.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EnergyPlus/DataSurfaces.cc b/src/EnergyPlus/DataSurfaces.cc index a417fa00cf6..273956698a1 100644 --- a/src/EnergyPlus/DataSurfaces.cc +++ b/src/EnergyPlus/DataSurfaces.cc @@ -554,8 +554,8 @@ void SurfaceData::make_hash_key(EnergyPlusData &state, const int SurfNum) calcHashKey.MaterialMovInsulExt = s_surf->extMovInsuls(SurfNum).matNum; calcHashKey.MaterialMovInsulInt = s_surf->intMovInsuls(SurfNum).matNum; - calcHashKey.movInsulExtSchedNum = s_surf->extMovInsuls(SurfNum).sched->Num; - calcHashKey.movInsulIntSchedNum = s_surf->intMovInsuls(SurfNum).sched->Num; + calcHashKey.movInsulExtSchedNum = (s_surf->extMovInsuls(SurfNum).sched == nullptr) ? -1 : s_surf->extMovInsuls(SurfNum).sched->Num; + calcHashKey.movInsulIntSchedNum = (s_surf->intMovInsuls(SurfNum).sched == nullptr) ? -1 : s_surf->intMovInsuls(SurfNum).sched->Num; calcHashKey.externalShadingSchedNum = (s_surf->Surface(SurfNum).surfExternalShadingSched != nullptr) ? s_surf->Surface(SurfNum).surfExternalShadingSched->Num : -1; calcHashKey.SurroundingSurfacesNum = s_surf->Surface(SurfNum).SurfSurroundingSurfacesNum;