woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

NumberFormatException: No digits found. #11353

Open sentry-io[bot] opened 6 months ago

sentry-io[bot] commented 6 months ago

Sentry Issue: WOOCOMMERCE-ANDROID-96X

NumberFormatException: No digits found.
    at com.woocommerce.android.ui.payments.customamounts.CustomAmountsFragment$observePercentageView$$inlined$addTextChangedListener$default$1.afterTextChanged(TextView.kt:100)
...
(65 additional frame(s) were not displayed)
dangermattic commented 6 months ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.

atorresveiga commented 6 months ago

I was able to replicate the issue by first typing . in the enter percentage view. Steps to reproduce:

  1. Open the app
  2. Tap on Orders
  3. Add a new Order by tapping the (+) button
  4. Tap on Add products and add a new product
  5. Tap on Add custom amounts
  6. Tap on a percentage of the order total
  7. Type . and see that the app crashes