Exception handled for dialog display

Exception caught in dialog display class.