Skip to content

Commit

Permalink
Fix Array index out of range issue
Browse files Browse the repository at this point in the history
  • Loading branch information
fethica committed Oct 7, 2015
1 parent 19fe0fd commit bd142d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SwiftRadio/NowPlayingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ class NowPlayingViewController: UIViewController {
track.artist = stringParts[0]
track.title = stringParts[0]

if stringParts.count > 0 {
if stringParts.count > 1 {
track.title = stringParts[1]
}

Expand Down Expand Up @@ -522,4 +522,4 @@ class NowPlayingViewController: UIViewController {
}
}
}
}
}

0 comments on commit bd142d2

Please sign in to comment.