Issue #10: Fixed a bug that buffer is null
Merge pull request #12 from VisualSJ/master

Issue #10: Fixed a bug that buffer is null