contract call dialog popup fix

A quick fix for the null pointer crash when opening the dialog