diff --git a/library/src/main/java/com/vijay/jsonwizard/presenters/JsonFormFragmentPresenter.java b/library/src/main/java/com/vijay/jsonwizard/presenters/JsonFormFragmentPresenter.java index a61bca3..f66727f 100644 --- a/library/src/main/java/com/vijay/jsonwizard/presenters/JsonFormFragmentPresenter.java +++ b/library/src/main/java/com/vijay/jsonwizard/presenters/JsonFormFragmentPresenter.java @@ -181,7 +181,7 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean isChecked) { public void onItemSelected(AdapterView parent, View view, int position, long id) { String parentKey = (String) parent.getTag(R.id.key); - if (position > 0) { + if (position >= 0) { String value = (String) parent.getItemAtPosition(position + 1); getView().writeValue(mStepName, parentKey, value); }