diff --git a/vumeterlibrary/build.gradle b/vumeterlibrary/build.gradle index 8bc0147..e38abec 100644 --- a/vumeterlibrary/build.gradle +++ b/vumeterlibrary/build.gradle @@ -11,8 +11,8 @@ android { defaultConfig { minSdkVersion 9 targetSdkVersion 23 - versionCode 13 - versionName "1.0.12" + versionCode 15 + versionName "1.0.14" } buildTypes { release { diff --git a/vumeterlibrary/src/main/java/io/gresse/hugo/vumeterlibrary/VuMeterView.java b/vumeterlibrary/src/main/java/io/gresse/hugo/vumeterlibrary/VuMeterView.java index 0ae49c6..066580e 100644 --- a/vumeterlibrary/src/main/java/io/gresse/hugo/vumeterlibrary/VuMeterView.java +++ b/vumeterlibrary/src/main/java/io/gresse/hugo/vumeterlibrary/VuMeterView.java @@ -323,6 +323,9 @@ public void stop(boolean withAnimation){ } for(int i = 0; i < mBlockNumber; i++){ + if(mDestinationValues[i] == null){ + continue; + } if(withAnimation){ mDestinationValues[i].setTargetPosition(collapseSize); } else {