airbnb / paris

Define and apply styles to Android views programmatically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Throws Fatal Exception randomly - not able to figure out the issue

rohithThammaiah opened this issue · comments

This happens randomly when the fragment is created with the following stacktrace:

Fatal Exception: kotlin.e
       at com.airbnb.paris.StyleApplierUtils$DebugListener.getOrDefault(StyleApplierUtils.java:19)
       at com.airbnb.paris.StyleApplierUtils$DebugListener.processAttributes(StyleApplierUtils.java:32)
       at com.airbnb.paris.StyleApplier.apply(StyleApplier.java:61)
       at android.view.ViewGroupStyleApplier.applyParent(ViewGroupStyleApplier.java:24)
       at com.airbnb.paris.StyleApplier.apply(StyleApplier.java:50)
       at com.techmash.playo.modules.learn.overview.ui.LearnResourceItemStyleApplier.applyParent(LearnResourceItemStyleApplier.java:20)
       at com.airbnb.paris.StyleApplier.apply(StyleApplier.java:50)
       at com.airbnb.paris.StyleApplierUtils$Companion.getAttrNames$paris_release(StyleApplierUtils.java:72)
       at com.techmash.playo.modules.learn.overview.ui.LearnResourceItemModel_$1.run(LearnResourceItemModel_.java:135)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:919)

I am dynamically changing some styles in the controller.