webmatch / WbmTagManager

Shopware 5 Plugin for Google Tag Manager integration and dataLayer configuration
27 stars 19 forks source link

Prevent NPE if impressions are not defined in DataLayer #52

Closed nicoanders closed 2 years ago

nicoanders commented 3 years ago

If the array-index "impressions" is not defined in the DataLayer for a controller, where a product-box is used, it comes to a Null-Pointer-Exception. Therefore a null-check has to be added on initializing.

wbm-mkopp commented 3 years ago

Hi @nicoanders,

thank you for your contribution. We will add it in the next release.

nicoanders commented 3 years ago

It solves issue #49 by the way