How to reproduce
Create a project from issue template
In service go activate Program management
service
Do not configure anything
Use the project as template to create a new project, a fatal error will be raised
<b>Fatal error</b>
: Uncaught TypeError: Tuleap\ProgramManagement\Domain\Program\Plan\PlanConfiguration::fromRaw(): Argument #2 ($program_increment_tracker_id) must be of type int, null given, called in /usr/share/tuleap/plugins/program_management/include/Adapter/Program/Plan/PlanConfigurationDAO.php on line 255 and defined in /usr/share/tuleap/plugins/program_management/include/Domain/Program/Plan/PlanConfiguration.php:61
Stack trace:
#0 /usr/share/tuleap/plugins/program_management/include/Adapter/Program/Plan/PlanConfigurationDAO.php(255): Tuleap\ProgramManagement\Domain\Program\Plan\PlanConfiguration::fromRaw()
#1 /usr/share/tuleap/plugins/program_management/include/Domain/Program/Plan/Inheritance/PlanInheritanceHandler.php(46): Tuleap\ProgramManagement\Adapter\Program\Plan\PlanConfigurationDAO->retrievePlan()
#2 /usr/share/tuleap/plugins/program_management/include/Adapter/Events/TrackersDuplicatedHandler.php(66): Tuleap\ProgramManagement\Domain\Program\Plan\Inheritance\PlanInheritanceHandler->handle()
#3 /usr/share/tuleap/src/common/Option/Option.php(91): Tuleap\ProgramManagement\Adapter\Events\TrackersDuplicatedHandler->Tuleap\ProgramManagement\Adapter\Events\{closure}()
#4 /usr/share/tuleap/plugins/program_management/include/Adapter/Events/TrackersDuplicatedHandler.php(65): Tuleap\Option\Option->apply()
#5 /usr/share/tuleap/plugins/program_management/include/program_managementPlugin.php(1667): Tuleap\ProgramManagement\Adapter\Events\TrackersDuplicatedHandler->handle()
#6 /usr/share/tuleap/src/common/Event/EventManager.class.php(128): program_managementPlugin->handleTrackersInheritance()
#7 /usr/share/tuleap/src/common/Plugin/PluginLoader.php(72): EventManager->eventManagerDispatch()
#8 /usr/share/tuleap/src/common/Event/EventManager.class.php(117): Tuleap\Plugin\PluginLoader->Tuleap\Plugin\{closure}()
#9 /usr/share/tuleap/src/common/Event/EventManager.class.php(147): EventManager->processEventOnListener()
#10 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerFactory.class.php(614): EventManager->dispatch()
#11 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(713): TrackerFactory->duplicate()
#12 /usr/share/tuleap/plugins/tracker/include/trackerPlugin.php(708): TrackerManager->duplicate()