Add nil check
Merge pull request #15 from gooichi/spike

Add nil check