You are calling getDialog() in the method onCreateDialog(). Therefore, the dialog has not been created yet and a Null pointer should be expected.
You need to override onStart as well and set up your views there instead, since the dialog will have been created by then.