[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gorm can edit which types of files ?

From: Riccardo Mottola
Subject: Re: Gorm can edit which types of files ?
Date: Thu, 28 Dec 2017 23:07:52 +0100
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1

Hi Daniel,

Daniel Santos wrote:
Here are the details of the error I am getting :

The backtrace :

(gdb) bt 5
#0  +[Utilities folderNodesFromFolders:separator:] (self=<optimized out>, _cmd=<optimized out>, theFolders=0x555555d49e20, theSeparator=<optimized out>)
    at Utilities.m:602
#1  0x00007ffff7b3470a in +[Utilities initializeFolderNodesUsingAccounts:] (self=<optimized out>, _cmd=<optimized out>, theAccounts=0x555555e67fc0)
    at Utilities.m:1045
#2  0x00007fffebebce71 in -[AccountEditorWindowController initWithWindowNibName:] (self=0x555555f5ebb0, _cmd=<optimized out>, windowNibName=<optimized out>)
    at AccountEditorWindowController.m:104
#3  0x00007fffebeb764c in -[AccountViewController addClicked:] (self=0x555555b8f990, _cmd=<optimized out>, sender=<optimized out>)
    at AccountViewController.m:235
#4  0x00007ffff65ad502 in -[NSApplication sendAction:to:from:] (self=<optimized out>, _cmd=<optimized out>,     aSelector=0x7fffec0d26f0 <_OBJC_SELECTOR_TABLE+2128>, aTarget=0x555555b8f990, sender=0x555555f68a80) at NSApplication.m:2249

in the method folderNodesFromFolders: separator: in the Utilities.m file :

line 584
i = [aString indexOfCharacter: theSeparator];
aString : Drafts
theSeparator : /
i : 9223372036854775807

line 602
aName = [aString substringWithRange: NSMakeRange(mark, i-mark)];
aString : Drafts
mark : 0
i : 9223372036854775807

when I step over this last instruction an exception is raised or something, in gdb the program just continues. Obviously the substring with the range is the problem, but how does i get that value from the indexOfCharacter method on line 584 ?

as you checked, you found an exception. Are you running a couple of days old code, but not totally up to date? In case update.
Confirm that i is NSUInteger in your code.

i gets that value from indexOfCharacter, a method which I recently changed to return NSNotFound instead of -1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]