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
|
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
|
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.
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
TableView/tableview/src/main/java/com/evrencoskun/tableview/layoutmanager/ColumnHeaderLayoutManager.java
Lines 96 to 99 in cf9c7f6
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
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.