Skip to content

Commit 9f2fc72

Browse files
Fix empty repo URL crash.
1 parent a158903 commit 9f2fc72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ACCodeSnippetRepository/Controllers/ACCodeSnippetRepositoryConfigurationWindowController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ - (ACCodeSnippetGitDataStore*)gitDataStore {
5757
- (void)controlTextDidChange:(NSNotification *)notification {
5858
NSTextField *textField = [notification object];
5959

60-
if (![[NSURL URLWithString:textField.stringValue] isEqualTo:self.gitDataStore.remoteRepositoryURL]) {
60+
if (([textField stringValue] &&
61+
[[textField stringValue] length]) &&
62+
![[NSURL URLWithString:textField.stringValue] isEqualTo:self.gitDataStore.remoteRepositoryURL]) {
6163
self.forkRemoteRepositoryButton.enabled = YES;
6264
} else {
6365
self.forkRemoteRepositoryButton.enabled = NO;

0 commit comments

Comments
 (0)