From d4e760efe1fad08ef98b614b8334c07fde1f1b2f Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 8 Jun 2005 14:07:53 +0000 Subject: [PATCH] fix a coredump situation, discovered by Melchior. --- simgear/props/props.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index a46ecfc8..dd8cb0c0 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -927,7 +927,8 @@ SGPropertyNode::removeChild (const char * name, int index, bool keep) if (keep) { _removedChildren.push_back(node); } - _path_cache->erase(name); // EMH - TODO: Take "index" into account! + if (_path_cache) + _path_cache->erase(name); // EMH - TODO: Take "index" into account! node->setAttribute(REMOVED, true); node->clearValue(); ret = node; -- 2.39.5