prevent NPE

This commit is contained in:
Milos Kozak 2021-01-14 12:28:15 +01:00
parent 91bac97dca
commit 3682693c10
2 changed files with 5 additions and 5 deletions

View file

@ -120,7 +120,7 @@ android {
targetSdkVersion 28
multiDexEnabled true
versionCode 1500
version "2.8.1.1"
version "2.8.1.2-dev"
buildConfigField "String", "VERSION", '"' + version + '"'
buildConfigField "String", "BUILDVERSION", '"' + generateGitBuild() + '-' + generateDate() + '"'
buildConfigField "String", "REMOTE", '"' + generateGitRemote() + '"'

View file

@ -36,10 +36,10 @@ public class NumberPicker extends LinearLayout implements View.OnKeyListener,
Button minusButton;
Button plusButton;
Double value;
Double minValue = 0d;
Double maxValue = 1d;
Double step = 1d;
double value = 0;
double minValue = 0d;
double maxValue = 1d;
double step = 1d;
NumberFormat formatter;
boolean allowZero = false;
TextWatcher textWatcher = null;