Skip to content

Commit eb91903

Browse files
committed
Check if any support package is installed before accessing property.
1 parent 2d79061 commit eb91903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolbox/+vcpkg/getTargetTriplet.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
if isMATLABReleaseOlderThan('R2026a') && ~isMATLABReleaseOlderThan('R2020b')
88
spkgInfo = matlabshared.supportpkg.getInstalled;
9-
if any(contains({spkgInfo.Name}, 'Simulink Real-Time Target Support Package'))
9+
if ~isempty(spkgInfo) && any(contains({spkgInfo.Name}, 'Simulink Real-Time Target Support Package'))
1010
triplet = 'x64-qnx-static';
1111
end
1212
elseif isMATLABReleaseOlderThan('R2020b')

0 commit comments

Comments
 (0)