X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fprops%2Fprops.cxx;h=dd8cb0c01fea7436eb50bf4be6bff8d733f0f48d;hb=68eb7031e2dce999d112d0164fa28d4b8d66922e;hp=a46ecfc8f88215bdb75f2be347f03d707ecefe87;hpb=3af1f3bc63d9c5062652bb7caafb5729bab7a944;p=simgear.git 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;