fix a bug of MusicPlayer that cause nullpointer exception

This commit is contained in:
Li REN 2013-06-14 13:04:48 -04:00
parent c8f31960de
commit 7ce050641d

View file

@ -25,6 +25,7 @@ public class MusicPlayer {
filelist.removeAll();
File filedir = new File(filepath);
File[] fileread = filedir.listFiles();
if(fileread == null) return false;
if(fileread.length == 0)return false;
String filename;
for(File f:fileread){