I have an alert dialog, that returns true or false (if OK or Cancel is clicked). When called null is assigned immediately and the code continues (despite the method being a