Error: Cannot Call Methods On Dialog Prior To Initialization; Attempted To Call Method 'close'

Solved.. :)

how you fixed please guide