Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of git://github.com/goonj/goonj

  • Loading branch information...
commit 90d59b1cec294e6b196be3772a044c289120b0cd 2 parents abfc3b5 + 0729005
Nandeep Mali authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 GPlaylistViewController.m
View
8 GPlaylistViewController.m
@@ -220,9 +220,13 @@ - (void) locateInFinder
- (NSString *) selectedPlaylistLocation
{
- NSString *location = [[NSString alloc] init];
+ NSString *location;
NSInteger row = [playlistView selectedRow];
- GTrack *t = [playlist trackAtIndex:row];
+
+ if (row == -1)
+ return nil;
+
+ GTrack *t = [playlist trackAtIndex:row];
location = [t valueForKey:@"location"];
return location;
Please sign in to comment.
Something went wrong with that request. Please try again.