Commits

Raphael Sebbe  committed 75e6823

Fixed project refresh crash when repository has no default URL

  • Participants
  • Parent commits 7467811

Comments (0)

Files changed (1)

File Source/ProjectsController.m

          //if(!result) return;
 
          
-         id defaultURL = [NSURL URLWithString:[repo.configFile valueForKey:@"default" inStanza: @"paths"]];
+         id defaultPath = [repo.configFile valueForKey:@"default" inStanza: @"paths"];
+
          
-         if(defaultURL)
+         if(defaultPath)
          {
+             id defaultURL = [NSURL URLWithString:defaultPath];
              [repo getCurrentRevisionCompletionHandler:^(HgRevision *rev) {
                  if(rev == nil)
                  {