liangzimei / yamlmatlab

Automatically exported from code.google.com/p/yamlmatlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DecodeUnicode throws null pointer exception when orig_utf is empty

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1.DecodeUnicode('')

Please provide any additional information below.

I added these lines to the beginning of DecodeUnicode to fix the problem:

if (isempty(orig_utf))
    str = '';
    return;
end

Original issue reported on code.google.com by gers...@gmail.com on 23 Jun 2011 at 2:02

add the same code to the beginning of EncodeUnicode

Original comment by gers...@gmail.com on 23 Jun 2011 at 2:10

Fixed in version 0.4.0

Original comment by JirkaCig...@gmail.com on 9 Sep 2011 at 7:31

  • Changed state: Fixed