Skip to content

Commit 4ed6298

Browse files
committed
Add empty description field if not in file
1 parent 6449213 commit 4ed6298

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

load_xdf.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@
334334
idmap(streamid) = id; %#ok<SPRIX>
335335
% read [Content]
336336
header = parse_xml_struct(fread(f,len-6,'*char')');
337+
if ~isfield(header.info, 'desc')
338+
header.info.desc = [];
339+
end
337340
streams{id} = header;
338341
if opts.Verbose
339342
fprintf([' found stream ' header.info.name '\n']); end

0 commit comments

Comments
 (0)