Fix for empty object array
This commit is contained in:
@@ -67,6 +67,8 @@ public class SongInstance {
|
|||||||
|
|
||||||
public long getEndTime()
|
public long getEndTime()
|
||||||
{
|
{
|
||||||
|
if(objects.size() == 0)
|
||||||
|
return 0;
|
||||||
return objects.get(objects.size()-1).getTime();
|
return objects.get(objects.size()-1).getTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user