InQBarna / TableFixHeaders

Android library that implements a table with fixed headers.
Apache License 2.0
818 stars 300 forks source link

Not running in Tablet #128

Closed YashNagayach closed 3 years ago

YashNagayach commented 6 years ago

Process: com.app.goveva, PID: 1792 java.lang.NullPointerException: Attempt to get length of null array at com.inqbarna.tablefixheaders.TableFixHeaders.sumArray(TableFixHeaders.java:616) at com.inqbarna.tablefixheaders.TableFixHeaders.computeHorizontalScrollOffset(TableFixHeaders.java:356)

Getting this when running on the tablet or any other android bigger size device (> 5"). But running properly on smaller devices(<= 5")

BraisGabin commented 6 years ago

There's nothing at line 616. Anyway this crash is not related with the device size. It must be your code doing different things depend on device display size. Why is the array null?

iman2420 commented 5 years ago

Do you implement TableFixHeaders view in separate threat??

sandeepyohans commented 4 years ago

I'm getting this exception after adding following line in xml layout code: android:scrollbars="horizontal|vertical" After removing this line it works fine. Note: I'm running it on Mobile phone with Android 8.1

mkkabi commented 4 years ago

was anyone able to find a solution to this issue? I'm trying to get this resolved in one of my applications. Already tried everything I could think of. A funny thing is that it works fine in another app. I've tried to replicate everything I could related to the implementation of the tablefixedheaders or even to how that other app uses it. And the issue is still there.