Make sure we can load up an entry for a particular eid that we found in

the playlist.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@316 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-09-14 17:45:46 +00:00
parent 3325368832
commit f8782c8f94
@@ -1,5 +1,5 @@
// //
// $Id: PlaylistPanel.java,v 1.5 2001/07/26 01:33:08 mdb Exp $ // $Id: PlaylistPanel.java,v 1.6 2001/09/14 17:45:46 mdb Exp $
package robodj.chooser; package robodj.chooser;
@@ -152,8 +152,12 @@ public class PlaylistPanel
continue; continue;
} }
Entry entry = Chooser.model.getEntry(eid); Entry entry = Chooser.model.getEntry(eid);
Song song = entry.getSong(sid); if (entry != null) {
_plist.add(new PlaylistEntry(entry, song)); Song song = entry.getSong(sid);
_plist.add(new PlaylistEntry(entry, song));
} else {
Log.warning("Unable to load entry [eid=" + eid + "].");
}
} }
} }