Fix null duration

This commit is contained in:
Joshua Bahnsen 2013-06-04 00:53:48 -07:00
parent 2648145438
commit 47849c34e9
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
<manifest xmlns:a="http://schemas.android.com/apk/res/android"
package="com.thejoshwa.ultrasonic.androidapp"
a:installLocation="auto"
a:versionCode="28"
a:versionName="1.2.0.1" >
a:versionCode="29"
a:versionName="1.2.0.2" >
<uses-permission a:name="android.permission.INTERNET" />
<uses-permission a:name="android.permission.READ_PHONE_STATE" />

View File

@ -254,7 +254,7 @@ public class MusicDirectory {
}
public Integer getDuration() {
return duration;
return duration == null ? 0 : duration;
}
public void setDuration(Integer duration) {