Fix nullpointer exception in dbaddress