-
-
Notifications
You must be signed in to change notification settings - Fork 458
Description
Is your feature request related to a problem? Please describe.
Because of a mistake I made when migrating from another table library, I left an extra column cell (old library's corner)
This makes TableView to crash here with a NullPointerException
Lines 96 to 99 in cf9c7f6
| public int getFirstItemLeft() { | |
| View firstColumnHeader = findViewByPosition(findFirstVisibleItemPosition()); | |
| return firstColumnHeader.getLeft(); | |
| } |
Describe the solution you'd like
Make TableView library gracefully handle this case.
When commenting this line I was able to prevent the app from crashing
TableView/tableview/src/main/java/com/evrencoskun/tableview/layoutmanager/CellLayoutManager.java
Line 258 in cf9c7f6
| mColumnHeaderLayoutManager.customRequestLayout(); |
The table will look wrong, but I think is better than the misleading NullPointerException.
Additional context
I followed the wiki for this example, only replacing object by string as data.