You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using AdvancedPaginationPlugin the method updatePages throws a NPE.
My code goes like this:
getController().getTeilnehmer(requestParams,
modelResponse -> {
setItems(modelResponse.getModels());
// This throws a NPE
getPagination().updatePages(20);
// This is what I would use, it also throws a NPE
getPagination().updatePagesByTotalCount(
modelResponse.getFoundCount(),
selAnzahlTeilnehmerProSeite.getValue()); //Number of items per page
table.show();
});
So it fetches the models from the server, then it updates the Pagination. It works with other plugins like ScrollingPaginationPlugin
It works on the first call, but on the next call it throws an NPE. I have to update the total number of pages, since it depends on the number of models the server sends back according to some search terms.
Error in Chrome:
TypeError: Cannot read properties of null (reading 'intValue_1_g$')
at aEgb_g$.kEgb_g$ [as lambda$12_8_g$] (AdvancedPagination.java:136:1)
at YEgb_g$.ZEgb_g$ [as onValueChanged_0_g$] (AdvancedPagination.java:136:1)
at Jhi_g$ (AbstractSelect.java:637:1)
at Tli_g$.Uli_g$ [as accept_1_g$] (AbstractSelect.java:637:1)
at C$d_g$ (Iterable.java:39:1)
at Eze_g$.REb_g$ [as forEach_0_g$] (Iterable.java:36:1)
at Wpi_g$.Oii_g$ [as triggerChangeListeners_2_g$] (AbstractSelect.java:636:1)
at Wpi_g$.vgi_g$ [as clearValue_0_g$] (AbstractSelect.java:279:1)
at Wpi_g$.ugi_g$ [as clear_11_g$] (AbstractSelect.java:613:1)
at Wpi_g$.sgi_g$ [as clear_10_g$] (AbstractSelect.java:602:1)
at Wpi_g$.kii_g$ [as lambda$61_0_g$] (AbstractSelect.java:1214:1)
at Xoi_g$.Yoi_g$ [as accept_1_g$] (AbstractSelect.java:1210:1)
at YCe_g$.dDe_g$ [as ifPresent_0_g$] (Optional.java:67:1)
at Wpi_g$.tii_g$ [as removeOption_0_g$] (AbstractSelect.java:1208:1)
at Wpi_g$.lii_g$ [as lambda$64_0_g$] (AbstractSelect.java:1264:1)
at api_g$.bpi_g$ [as accept_1_g$] (AbstractSelect.java:1263:1)
at yje_g$.Hje_g$ [as forEach_0_g$] (ArrayList.java:175:1)
at Wpi_g$.sii_g$ [as removeAllOptions_0_g$] (AbstractSelect.java:1261:1)
at aEgb_g$.BEgb_g$ [as updatePages_8_g$] (AdvancedPagination.java:178:1)
at aEgb_g$.DEgb_g$ [as updatePages_9_g$] (AdvancedPagination.java:160:1)
at aEgb_g$.EEgb_g$ [as updatePages_5_g$] (AdvancedPagination.java:159:1)
at aEgb_g$.o0l_g$ [as updatePages_0_g$] (BasePagination.java:191:1)
at aEgb_g$.p0l_g$ [as updatePages_1_g$] (BasePagination.java:190:1)
at htc_g$.itc_g$ [as lambda$0_4_g$] (StarterlisteView.java:328:1)
Additional context
DominoUI 2 HEAD-SNAPSHOT as of today
The text was updated successfully, but these errors were encountered:
Describe the bug
Using
AdvancedPaginationPlugin
the methodupdatePages
throws a NPE.My code goes like this:
So it fetches the models from the server, then it updates the Pagination. It works with other plugins like
ScrollingPaginationPlugin
It works on the first call, but on the next call it throws an NPE. I have to update the total number of pages, since it depends on the number of models the server sends back according to some search terms.
Error in Chrome:
Additional context
DominoUI 2 HEAD-SNAPSHOT as of today
The text was updated successfully, but these errors were encountered: