Liferay 7.4 Bulk User creation throws null pointer exception

Jamie Sammons, modified 2 Years ago. New Member Posts: 2 Join Date: 5/4/23 Recent Posts

Currently we were creating users with an osgi module, and bulk was working correctly. But with the upgrade to liferay 7.4 it stopped working and throws a null pointer exception, and all the parameters have a specific value, the method used is addUserWithWorkflow from the UserLocalServiceUtil.

thumbnail
Olaf Kock, modified 2 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

A NPE typically comes with a stacktrace - knowing it and the exact version that you're running, it should be simple to map the exception to a specific line of code (either your own, or Liferay's). This mapping should tell you what's wrong. Without it, there's not much we can help you with.