diff --git a/panda/src/sgmanip/nodePath.cxx b/panda/src/sgmanip/nodePath.cxx index e33a3b9b26..98f052851c 100644 --- a/panda/src/sgmanip/nodePath.cxx +++ b/panda/src/sgmanip/nodePath.cxx @@ -2566,6 +2566,7 @@ r_get_net_transitions(const ArcComponent *comp, //////////////////////////////////////////////////////////////////// string NodePath:: format_node_name(Node *dnode) const { + nassertr(dnode != (Node *)NULL, string()); if (dnode == (Node *)NULL) { return "(NULL)"; }