diff --git a/src/mol-model/structure/model/formats/mmcif/ihm.ts b/src/mol-model/structure/model/formats/mmcif/ihm.ts index db2e86c84014a70e261ec700a16c9c2512cbcfc6..0e063f5b9d2fb3d05974960352e0df0077ad34bb 100644 --- a/src/mol-model/structure/model/formats/mmcif/ihm.ts +++ b/src/mol-model/structure/model/formats/mmcif/ihm.ts @@ -28,6 +28,8 @@ export const EmptyIHMCoarse = { hierarchy: CoarseHierarchy.Empty, conformation: export function getIHMCoarse(data: IHMData): { hierarchy: CoarseHierarchy, conformation: CoarseConformation } { const { ihm_sphere_obj_site, ihm_gaussian_obj_site } = data; + if (ihm_sphere_obj_site._rowCount === 0 && ihm_gaussian_obj_site._rowCount === 0) return EmptyIHMCoarse; + const sphereData = getData(ihm_sphere_obj_site); const sphereConformation = getSphereConformation(ihm_sphere_obj_site); const sphereKeys = getCoarseKeys(sphereData, data.entities);