An issue can occurs when updating an artifact in a tracker without a status field.
Reproduction scenario:
- Create a tracker without a status field
- Create a kanban using this tracker
- Update an artifact in this tracker
Trace:
PHP Fatal error: Uncaught Error: Call to a member function getId() on null in /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/Kanban/RealTime/KanbanArtifactMessageBuilder.php:73
Stack trace:
#0 /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/Kanban/RealTime/KanbanArtifactMessageSender.php(84): Tuleap\AgileDashboard\Kanban\RealTime\KanbanArtifactMessageBuilder->buildArtifactMoved()
#1 /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/RealTime/RealTimeArtifactMessageController.php(74): Tuleap\AgileDashboard\Kanban\RealTime\KanbanArtifactMessageSender->sendMessageArtifactMoved()
#2 /usr/share/tuleap/plugins/agiledashboard/include/agiledashboardPlugin.php(1308): Tuleap\AgileDashboard\RealTime\RealTimeArtifactMessageController->sendMessageForKanban()
#3 /usr/share/tuleap/src/common/Event/EventManager.class.php(127): AgileDashboardPlugin->trackerArtifactUpdated()
#4 /usr/share/tuleap/src/common/Plugin/PluginLoader.php(72): EventManager->eventMa