From dd367daac9f784d8f4df39c4d8e9f78ef88e4de0 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 19 Nov 2013 21:33:14 +0000 Subject: [PATCH] Fix another SVN crash on failure. --- simgear/io/SVNRepository.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/simgear/io/SVNRepository.cxx b/simgear/io/SVNRepository.cxx index d3635fe8..822f6391 100644 --- a/simgear/io/SVNRepository.cxx +++ b/simgear/io/SVNRepository.cxx @@ -163,8 +163,10 @@ namespace { // anonmouse virtual void onFail() { HTTP::Request::onFail(); - _repo->propFindFailed(this, SVNRepository::SVN_ERROR_SOCKET); - _repo = NULL; + if (_repo) { + _repo->propFindFailed(this, SVNRepository::SVN_ERROR_SOCKET); + _repo = NULL; + } } private: -- 2.39.5