vaadin / vaadin-grid-flow

Vaadin Flow Java API for vaadin/vaadin-grid Web Component
https://vaadin.com/components/vaadin-grid
Other
14 stars 16 forks source link

fix: prevent NPE for client-side only grids #1111

Closed DiegoCardoso closed 4 years ago

DiegoCardoso commented 4 years ago

fix #1077

ItemCache#ensureSubCacheForScaledIndex method is changed by gridConnector, so it will make any grid on the page use the new implementation. That leads to a call from undefined object in case of a grid entirely defined on the client side needs to call this method.

This change stores the original implementation and calls it when the grid doesn't have a $connector object.