Skip to content

Commit 6c4e641

Browse files
committed
Fix loadInstances
Fix bug where instances fail to load if a linked instance is missing
1 parent b55fbb0 commit 6c4e641

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

code/loadInstances.m

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ function resolveLinks(instance, instanceCollection)
6969
end
7070

7171
isMatchedInstance = strcmp(instanceIds, instanceId);
72-
resolvedInstances{j} = instanceCollection{isMatchedInstance};
73-
74-
resolveLinks(resolvedInstances{j}, instanceCollection)
72+
73+
if any(isMatchedInstance)
74+
resolvedInstances{j} = instanceCollection{isMatchedInstance};
75+
resolveLinks(resolvedInstances{j}, instanceCollection)
76+
end
7577
end
7678

7779
try

0 commit comments

Comments
 (0)