]> git.mxchange.org Git - simgear.git/commitdiff
Fix another SVN crash on failure.
authorJames Turner <zakalawe@mac.com>
Tue, 19 Nov 2013 21:33:14 +0000 (21:33 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 19 Nov 2013 21:33:50 +0000 (21:33 +0000)
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: