Browse files

Fixed a bug in MusicDbAdapter.java. Needed to use a different version…

… of the toArray function to cast properly and prevent a ClassCastException from being thrown
  • Loading branch information...
1 parent 0409a33 commit 232d092551bc93dfed548b8ab3c8141255c448b5 @sandy-8925 committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/com/trinity/stooges/MusicDbAdapter.java
View
2 src/com/trinity/stooges/MusicDbAdapter.java
@@ -124,7 +124,7 @@ public Cursor fetchSongs()
songCursor.moveToNext();
}
- return (SongEntity[]) listOfSongs.toArray();
+ return (SongEntity[]) listOfSongs.toArray(new SongEntity[0]);
}
public SongEntity getSong(String echoNestId)

0 comments on commit 232d092

Please sign in to comment.