Null-pointer in Piwik Pro wordpress plugin

Hi,
I’m using the piwk pro ([Piwik PRO] Support | WordPress.org) for a while now.
I just noticed a null pointer error in my logs. It coincides with a customer in the purchasing process. It’s the first time I see it happening. So most likely some rare combination of events. Still something that can be caught.

2023-05-22T10:46:32+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents() on null in /home/deb13/domains/site.nl/public_html/wp-content/plugins/piwik-pro/includes/Plugin.php:118
Stack trace:
#0 /home/deb13/domains/site.nl/public_html/wp-includes/class-wp-hook.php(306): PiwikPRO\Plugin->action_wp_footer()
#1 /home/deb13/domains/site.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#2 /home/deb13/domains/site.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /home/deb13/domains/site.nl/public_html/wp-includes/general-template.php(3065): do_action()
#4 /home/deb13/domains/site.nl/public_html/wp-content/themes/generatepress_child/footer.php(88): wp_footer()
#5 /home/deb13/domains/site.nl/public_html/wp-includes/template.php(783): require_once('/home/deb13...')
#6 /home/deb13/domains/site.nl/public_html/wp-includes/template.php(718): load_template()
#7 /home/deb13/domains/site.nl/public_html/wp-includes/general-template.php(92): locate_template()
#8 /home/deb13/domains/site.nl/public_html/wp-content/themes/generatepress/404.php(46): get_footer()
#9 /home/deb13/domains/site.nl/public_html/wp-includes/template-loader.php(106): include('/home/deb13...')
#10 /home/deb13/domains/site.nl/public_html/wp-blog-header.php(19): require_once('/home/deb13...')
#11 /home/deb13/domains/site.nl/public_html/index.php(17): require('/home/deb13...')
#12 {main}
  thrown in /home/deb13/domains/site.nl/public_html/wp-content/plugins/piwik-pro/includes/Plugin.php op de lijn 118

Hi Sjon!

Thanks a ton for the feedback, I have forwarded this error to the product team :slight_smile:.