1. Jens Alfke
  2. Murky
  3. Issues
Issue #141 resolved

Bad URL in hgrc file causes exception when pulling

Anonymous created an issue

Uncaught exception: NSInvalidArgumentException

*** -[NSCFArray insertObject:atIndex:]: attempt to insert nil

_NSArrayRaiseInsertNilException (in Foundation) + 75
-[NSCFArray insertObject:atIndex:] (in Foundation) + 118
-[NSCFArray addObject:] (in Foundation) + 68
-[HgConfigFile URLsForStanza:] (in Murky) (HgConfigFile.m:50)
-[RepoController(Actions) pushPullRevisions:] (in Murky) (RepoController_Actions.m:558)
-[NSToolbarButton sendAction:to:] (in AppKit) + 100
-[NSToolbarButton sendAction] (in AppKit) + 88
-[NSToolbarItemViewer mouseDown:] (in AppKit) + 4976
-[NSWindow sendEvent:] (in AppKit) + 5549
-[NSApplication sendEvent:] (in AppKit) + 6431
-[NSApplication run] (in AppKit) + 917
NSApplicationMain (in AppKit) + 574

Comments (3)

  1. Jens Alfke repo owner
    • changed status to open

    Looks like the [paths] stanza of your .hgrc file contains an illegal URL string. Fixing that should make the problem go away.

    This is a Murky bug, though, since bad data in the file shouldn't cause an exception. The result of +[NSURL URLWithString:] needs to be checked for nil, at HgConfigFile.m:51.

  2. Log in to comment