FolderItem.Child("") crashes 10.10 or 10.11

I’m seeing cases where code that works fine on 10.10 crashes on 10.11, like this:

9/10/15 11:00:12.102 AM MyApp[748]: Unhandled Exception: 0 UnsupportedFormatException in XojoFramework.dylib$7790
XojoFramework.dylib$9149
XojoFramework.dylib$4026
XojoFramework.dylib$7790
FolderChild
FolderItem.Child%o<FolderItem>%o<FolderItem>s
App.FooBarCallback%%o<App>
Delegate.IM_Invoke%%
cTimer.Event_Action%%o<cTimer>
XojoFramework.dylib$9651
XojoFramework.dylib$9650
__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
__CFRunLoopDoTimer
__CFRunLoopDoTimers
__CFRunLoopRun
CFRunLoopRunSpecific
CFRunLoopRunInMode
RunCurrentEventLoopInMode
ReceiveNextEventCommon
_BlockUntilNextEventMatchingListInModeWithFilter
_DPSNextEvent
-[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
XojoFramework.dylib$1449
XojoFramework.dylib$1450
Delegate.Invoke%%
Application._CallFunctionWithExceptionHandling%%o<Application>p
XojoFramework.dylib$9511
XojoFramework.dylib$1449
-[NSApplication run]
XojoFramework.dylib$9513
RuntimeRun
REALbasic._RuntimeRun
_Main
% main
_start
start

This is with an app built in Xojo 2014R2.1.

I’m also seeing (possibly related?) items in the Console like this:

9/10/15 11:00:09.929 AM MyApp[748]: CFURLGetFSRef was passed an URL which has no scheme (the URL will not work with other CFURL routines)

Which I don’t remember seeing in 10.10 before.

Hmm - on re-testing, I’m seeing these same issues in 10.10.5, so this may have nothing to do with El Capitan (10.11). I’ll see if I can figure it out.

Turns out that calling FolderItem.Child("") will trigger this on both 10.10 and 10.11.

Submitted as <https://xojo.com/issue/40777>

[quote=212683:@Michael Diehr]I’m seeing cases where code that works fine on 10.10 crashes on 10.11, like this:

9/10/15 11:00:12.102 AM MyApp[748]: Unhandled Exception: 0 UnsupportedFormatException in XojoFramework.dylib$7790

[/quote]

You’re seeing an Unhandled exception

See line one of the log

[quote=212699:@Norman Palardy]You’re seeing an Unhandled exception
See line one of the log[/quote]

Doh - indeed, and in fact it’s my code that logged the error to the console. Sigh. Never mind.