since todos initial value is null, update code for NPE issue
Merge pull request #28 from lbt05/master

since todos initial value is null, update code for NPE issue