]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/SVNRepository.cxx
Reset: allow re-init of Nasal Ghosts.
[simgear.git] / simgear / io / SVNRepository.cxx
index d3635fe811f884c376637b54e15f4feffb45d82e..822f639100501ff5f2d042eed9788ae8f9bb996c 100644 (file)
@@ -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: