found a bug and when try to fix sample app.

i was corresponding null check leak.