We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f4fdaa commit 7f151e9Copy full SHA for 7f151e9
1 file changed
AppBox/AppDelegate.m
@@ -179,7 +179,16 @@ -(void)openLatestLogFile {
179
180
//URISchem URL Handler
181
-(void)handleGetURLWithEvent:(NSAppleEventDescriptor *)event andReply:(NSAppleEventDescriptor *)reply{
182
- NSURL *url = [NSURL URLWithString:[[event paramDescriptorForKeyword:keyDirectObject] stringValue]];
+ NSString *urlString = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
183
+ if (!urlString || urlString.length == 0) {
184
+ DDLogWarn(@"Received empty URL event");
185
+ return;
186
+ }
187
+ NSURL *url = [NSURL URLWithString:urlString];
188
+ if (!url) {
189
+ DDLogWarn(@"Failed to parse URL: %@", urlString);
190
191
192
DDLogInfo(@"Handling URL = %@",url);
193
194
//Check for Dropbox auth
0 commit comments