Your NumberPickers objects are null.
If they are declared in the layout of renameDialog
, then try to find the view by id in the promptsView
layout, like this:
whatin = (NumberPicker)promptsView.findViewById(R.id.inpicker);
whatout = (NumberPicker)promptsView.findViewById(R.id.outpicker);