Skip to content

Commit

Permalink
handle empty array in loadmsgpack, fix #63, patch by stfnp
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed May 3, 2020
1 parent 7499bd8 commit 82dfdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadmsgpack.m
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
for n=1:len
[out{n}, idx] = parse(bytes, idx, varargin{:});
end
if(isnumeric(out{1}))
if(~isempty(out) && isnumeric(out{1}))
try
oldobj=out;
out=cell2mat(out);
Expand Down

0 comments on commit 82dfdcc

Please sign in to comment.