Skip to content

Commit

Permalink
fix: NPE in ProductEditNutritionFactsFragment (#3861)
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikaysharma01 committed Mar 2, 2021
1 parent 912bb4d commit 43b9850
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -891,7 +891,7 @@ class ProductEditNutritionFactsFragment : ProductEditFragment() {
override fun afterTextChanged(s: Editable) = editTextView.checkValueAndRelated()
override fun onNothingSelected(parent: AdapterView<*>?) = editTextView.checkValueAndRelated()

override fun onItemSelected(parent: AdapterView<*>?, view: View, position: Int, id: Long) {
override fun onItemSelected(parent: AdapterView<*>?, view: View?, position: Int, id: Long) {
editTextView.checkValueAndRelated()
if (binding.salt.entryName == editTextView.entryName) {
binding.sodium.unitSpinner!!.setSelection(binding.salt.unitSpinner!!.selectedItemPosition)
Expand Down

0 comments on commit 43b9850

Please sign in to comment.