andymatuschak/Sparkle — Issue #115: Exception if feed URL is empty
Author: triplef
Created: 2011-11-07 00:19:47+00:00
State: open

We’re getting the following exception when launching without existing preferences, apparently since SUFeedURL is empty in our debug build. This is with the latest version 55eed9efd84c4a2163a3e2b86c8d9b68a243fb6b.

```
-[__NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: feedURL)
(
0 CoreFoundation 0x95463d87 __raiseError + 231
1 libobjc.A.dylib 0x9af80149 objc_exception_throw + 155
2 CoreFoundation 0x953cb619 +[NSException raise:format:arguments:] + 137
3 CoreFoundation 0x953cb589 +[NSException raise:format:] + 57
4 CoreFoundation 0x9538442d -[__NSCFDictionary setObject:forKey:] + 253
5 Sparkle 0x00869f0f Sparkle + 7951
6 CoreFoundation 0x953b9091 -[NSObject performSelector:withObject:] + 65
7 Foundation 0x97ac2f64 __NSThreadPerformPerform + 503
8 CoreFoundation 0x9533084f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
9 CoreFoundation 0x95330206 __CFRunLoopDoSources0 + 246
10 CoreFoundation 0x9535a0d8 __CFRunLoopRun + 1112
11 CoreFoundation 0x953598ec CFRunLoopRunSpecific + 332
12 CoreFoundation 0x95359798 CFRunLoopRunInMode + 120
13 HIToolbox 0x94ad0a7f RunCurrentEventLoopInMode + 318
14 HIToolbox 0x94ad7d9b ReceiveNextEventCommon + 381
15 HIToolbox 0x94ad7c0a BlockUntilNextEventMatchingListInMode + 88
16 AppKit 0x98bed040 _DPSNextEvent + 678
17 AppKit 0x98bec8ab -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 113
18 AppKit 0x98be8c22 -[NSApplication run] + 911
19 AppKit 0x98e7d18a NSApplicationMain + 1054
)
```