npe fix for implicit intent

includes random color fix too
Merge pull request #21 from vishal0071/master

npe fix for implicit intent