From: James Turner Date: Tue, 19 Nov 2013 21:33:14 +0000 (+0000) Subject: Fix another SVN crash on failure. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dd367daac9f784d8f4df39c4d8e9f78ef88e4de0;p=simgear.git Fix another SVN crash on failure. --- 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: