added null-chack to Node-Detail dialog