Skip to content

Commit 3c1225a

Browse files
committed
java: handle empty string input
1 parent 24c3726 commit 3c1225a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

+stdlib/+java/private/javaException.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ function javaException(e)
99
switch class(e.ExceptionObject)
1010
case {'java.nio.file.NoSuchFileException', 'java.nio.file.NotLinkException', 'java.lang.UnsupportedOperationException'}
1111
% pass
12+
case 'java.lang.NullPointerException'
13+
% empty input
1214
otherwise
1315
rethrow(e)
1416
end

0 commit comments

Comments
 (0)