From 48f866dcc68fe6952e0de202ad182bd2fbdf6b4f Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 5 Nov 2013 05:17:46 +0000 Subject: [PATCH] TerraSync: avoid assert on missing file --- simgear/io/SVNReportParser.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/simgear/io/SVNReportParser.cxx b/simgear/io/SVNReportParser.cxx index 96b357f5..9a3077d2 100644 --- a/simgear/io/SVNReportParser.cxx +++ b/simgear/io/SVNReportParser.cxx @@ -392,7 +392,11 @@ public: finishFile(currentDir->addChildFile(currentPath.file())); } else if (!strcmp(name, SVN_OPEN_FILE_TAG)) { DAVResource* res = currentDir->collection()->childWithName(currentPath.file()); - assert(res); + if (!res) { + SG_LOG(SG_IO, SG_WARN, "SVN open-file: unknown: " << currentPath); + fail(SVNRepository::SVN_ERROR_IO); + return; + } finishFile(res); } else if (!strcmp(name, SVN_ADD_DIRECTORY_TAG)) { // pop directory -- 2.39.5