Update MyActivity.java for fixing NULLPOINTEREXCEPTION

If click the "Hello World" after running app without clicking a list item, it will crash for the reason of no NULL checking.