GwtMaterialDesign / gwt-material

A Google Material Design wrapper for GWT
https://gwtmaterialdesign.github.io/gmd-core-demo/
Apache License 2.0
410 stars 124 forks source link

MaterialCollectionItem throws NPE onClick #1026

Open DWinklerSaascom opened 1 year ago

DWinklerSaascom commented 1 year ago

Hallo,

currently i have a Problem with MaterialCollectionItem with an MaterialCollectionSecondary

I m creating a Item with Secondary Icons. HTML looks like image

Somehow the MaterialCollectionItem throws now a NPE on click because the "cb.getValue()" is returning null.

image

I think it would be a better solution to make it configurable or at least a overwritable Funktion to not set this Handler at all. Only if we have a Secondary with a boolean Value it should be aktiv.