woocommerce / woocommerce-android

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

NullPointerException: Attempt to invoke virtual method 'void androidx.fragment.app.Fragment.setAnimations(int, int, int... #10020

Open kidinov opened 8 months ago

kidinov commented 8 months ago

Sentry Issue: WOOCOMMERCE-ANDROID-4XA

NullPointerException: Attempt to invoke virtual method 'void androidx.fragment.app.Fragment.setAnimations(int, int, int, int)' on a null object reference
    at androidx.fragment.app.BackStackRecord.executePopOps(BackStackRecord.java:447)
    at androidx.fragment.app.FragmentManager.executeOps(FragmentManager.java:1964)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1875)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1825)
    at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1762)
...
(9 additional frame(s) were not displayed)
peril-woocommerce[bot] commented 8 months ago
Fails
:no_entry_sign: Please add a feature label to this issue. e.g. 'feature: stats'

Generated by :no_entry_sign: dangerJS

kidinov commented 8 months ago

Many logs suggest that it may be related to the backclick on the main activity

kidinov commented 8 months ago

The issue appeared in 10.2 release, where we updated implementation "androidx.fragment:fragment-ktx to 1.5.2. My assumption that the issue is in the library itself, so lets see if this https://github.com/woocommerce/woocommerce-android/pull/9998 fixes that