fixed a null pointer exception in GUI DIalogue Editor