Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Nullpointerexception in ActivatorUtil when registering portlets #16877
Describe the bug
When restarting dotCMS one of our dynamic plugins doesn't deploy because of the following error:
The cause is that "entries" is null. I'm not sure whether it should be able to be null but it is in our case and simply adding a null-check in the while fixes the issue.
It happens when our OSGi plugin Activator tries to add a portlet.
Restarting the framework also fixes the issue but the plugin will be in a bad state each time dotCMS is restarted
When we receive the exception the variables in the method have the following values: