Urgent : After upgrading to latest Cuba 7.2.22, I am now receiving a NullPointerException when editing or creating a new Email Template

After upgrading Cuba-platform to 7.2.22 I am now getting a NullPointerException when trying to Edit or Create an Email Template.

It may be coming from the GrapeJS addon.

I am using:
IntelliJ version 2024.2.5 (Ultimate Edition)
Cuba Studio plugin version 15.11-243
Cuba Platform version 7.2.22

Please see below:

java.lang.NullPointerException
	at com.haulmont.addon.grapesjs.web.gui.components.GjsPluginsRepositoryImpl.getPlugin(GjsPluginsRepositoryImpl.java:54)
	at com.haulmont.addon.grapesjs.web.gui.xml.layout.loaders.GrapesJsHtmlEditorLoader.loadPlugins(GrapesJsHtmlEditorLoader.java:69)
	at com.haulmont.addon.grapesjs.web.gui.xml.layout.loaders.GrapesJsHtmlEditorLoader.loadComponent(GrapesJsHtmlEditorLoader.java:49)
	at com.haulmont.addon.grapesjs.web.gui.xml.layout.loaders.GrapesJsNewsletterHtmlEditorLoader.loadComponent(GrapesJsNewsletterHtmlEditorLoader.java:31)
	at com.haulmont.cuba.gui.xml.layout.loaders.ContainerLoader.loadSubComponents(ContainerLoader.java:38)
	at com.haulmont.cuba.gui.xml.layout.loaders.SplitPanelLoader.loadComponent(SplitPanelLoader.java:78)
	at com.haulmont.cuba.gui.xml.layout.loaders.ContainerLoader.loadSubComponents(ContainerLoader.java:38)
	at com.haulmont.cuba.gui.xml.layout.loaders.ContainerLoader.loadSubComponentsAndExpand(ContainerLoader.java:76)
	at com.haulmont.cuba.gui.xml.layout.loaders.AbstractBoxLoader.loadComponent(AbstractBoxLoader.java:50)
	at com.haulmont.cuba.gui.xml.layout.loaders.ContainerLoader.loadSubComponents(ContainerLoader.java:38)
	at com.haulmont.cuba.gui.xml.layout.loaders.TabSheetLoader.loadComponent(TabSheetLoader.java:93)
	at com.haulmont.cuba.gui.xml.layout.loaders.ContainerLoader.loadSubComponents(ContainerLoader.java:38)
	at com.haulmont.cuba.gui.xml.layout.loaders.ContainerLoader.loadSubComponentsAndExpand(ContainerLoader.java:76)
	at com.haulmont.cuba.gui.xml.layout.loaders.WindowLoader.loadComponent(WindowLoader.java:94)
	at com.haulmont.cuba.web.sys.WebScreens.loadWindowFromXml(WebScreens.java:374)
	at com.haulmont.cuba.web.sys.WebScreens.createScreen(WebScreens.java:241)
	at com.haulmont.cuba.web.sys.WebScreens.openEditor(WebScreens.java:1246)
	at com.haulmont.cuba.gui.components.HasWindowManager.openEditor(HasWindowManager.java:138)
	at com.haulmont.cuba.gui.components.actions.CreateAction.internalOpenEditor(CreateAction.java:304)
	at com.haulmont.addon.emailtemplates.web.emailtemplate.browse.EmailTemplateBrowse$TemplateCreateAction.actionPerform(EmailTemplateBrowse.java:63)
	at com.haulmont.cuba.web.gui.components.WebPopupButton.lambda$setPopupButtonAction$1(WebPopupButton.java:328)
	at com.haulmont.cuba.web.widgets.CubaButton.fireClick(CubaButton.java:76)
	at com.vaadin.ui.Button$1.click(Button.java:57)

I am thinking this is a bug ?
Please help

Hi Robert,

The purpose of Release 7.2.22 is to update 3rd-party dependencies to fix vulnerabilities.

Email Templates addon uses GrapesJS addon version 0.6.0 which has updated versions of plugins, but touch plugin has been removed due to lack of new versions (see Update GrapesJs dependency versions #18).

Looks like you have touch plugin in your configuration - you need to exclude it (grapesjs-addon/README.md at master · cuba-platform/grapesjs-addon · GitHub).

Regards,
Ivan

Hi Ivan,

Where would I have touch plugin in my configuration ? Which configuration ? Where can I go to find such a configuration ?
I know I have not manually added that plugin.
I have done a search and not seeing where it is added
thanks

Hi Robert,

Found an issue with Email Templates addon. We are going to release fixed version of it ASAP.

Regards,
Ivan

1 Like

Thanks Ivan,
Can you please let us know when it is fixed.
Will we be notified ? tracking link ? thanks

I will explicitly notify you here.

1 Like

Hi Robert,

Email Templates 1.4.4 is published.
Please check.

Regards,
Ivan

1 Like

Thanks Ivan,
Accessing Email templates, no longer giving error.