From 83601fce733131aceb3281a2ca25669d0e98a022 Mon Sep 17 00:00:00 2001 From: mdb Date: Wed, 28 Jan 2004 02:35:55 +0000 Subject: [PATCH] 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 --- projects/robodj/src/java/robodj/repository/Entry.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/robodj/src/java/robodj/repository/Entry.java b/projects/robodj/src/java/robodj/repository/Entry.java index 7150ddb3..ecd9e457 100644 --- a/projects/robodj/src/java/robodj/repository/Entry.java +++ b/projects/robodj/src/java/robodj/repository/Entry.java @@ -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];