Your using findViewById()
on a wrong view. You haven't included your XML but I'm guessing that you want to find it in dialog's layout.
Change
RadioGroup tes=(RadioGroup) findViewById(R.id.penagihan);
to
RadioGroup tes=(RadioGroup) dialog3.findViewById(R.id.penagihan);