Fix Nullpointer Exception and able to provide correct value to Frag.next instance..