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: