Original Submission If a project is activated without any administrators, the activation can crash.
The issue has been observed in production environment on some old, likely corrupted, project. In any case, the crash should not happen. All the other activation steps works fine with the same context.
Trace:
WARNING: [pool tuleap] child 660 said into stderr: "NOTICE: PHP message: PHP Notice: Undefined offset: 0 in /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php on line 63"
WARNING: [pool tuleap] child 660 said into stderr: "NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php:47"
WARNING: [pool tuleap] child 660 said into stderr: "#0 /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php(34): Tuleap\Project\Webhook\ProjectCreatedPayload->buildPayload(Object(Project), 1548402935)"
WARNING: [pool tuleap] child 660 said into stderr: " thrown in /usr/share/tuleap/src/common/project/Webhook/ProjectCreatedPayload.php on line 47"