Skip to content

Commit 6d4aba2

Browse files
committed
ensure allocated
1 parent 877a17a commit 6d4aba2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

+stdlib/checkout_license.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
end
1717

1818
ok = false;
19+
featureName = string.empty;
1920

2021
% If ~feature('webui'), Java can crash while checking out the license cache.
2122
% feature('webui') is false for Matlab < R2025a if not using the "New Desktop"
@@ -34,8 +35,7 @@
3435
end
3536

3637
if ~usejava('jvm')
37-
disp('Java must be enabled to lookup license names.')
38-
return
38+
warning('Java must be enabled to lookup license names.')
3939
end
4040

4141
featureName = product2feature(name);

0 commit comments

Comments
 (0)