Not to freak out if we don't have our songs for some reason.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1386 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: Entry.java,v 1.4 2002/02/22 07:06:33 mdb Exp $
|
||||
// $Id: Entry.java,v 1.5 2004/01/28 02:35:55 mdb Exp $
|
||||
|
||||
package robodj.repository;
|
||||
|
||||
@@ -51,6 +51,9 @@ public class Entry
|
||||
*/
|
||||
public Song getSong (int songid)
|
||||
{
|
||||
if (songs == null) {
|
||||
return null;
|
||||
}
|
||||
for (int i = 0; i < songs.length; i++) {
|
||||
if (songs[i].songid == songid) {
|
||||
return songs[i];
|
||||
|
||||
Reference in New Issue
Block a user