•  
      request #21349 Notice: Trying to access array offset on value of type null in project_ownership
    Infos
    #21349
    Nicolas Terray (nterray)
    2021-05-11 18:21
    2021-05-11 15:16
    22946
    Details
    Notice: Trying to access array offset on value of type null in project_ownership

    When project is not part of table plugin_project_ownership_project_owner then on the project dashboard we get a notice:

    ( ! ) Notice: Trying to access array offset on value of type null in /usr/share/tuleap/plugins/project_ownership/include/ProjectOwner/UserWithStarBadgeFinder.php on line 39
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0102	362528	{main}( )	.../index.php:0
    2	0.1119	2546408	Tuleap\Request\FrontRouter->route( ??? )	.../index.php:49
    3	0.1129	2549560	Tuleap\Request\FrontRouter->routeHandler( ???, ???, ??? )	.../FrontRouter.php:96
    4	0.1595	3954232	Tuleap\Project\Home->process( ???, ???, ??? )	.../FrontRouter.php:248
    5	0.2356	4820024	Tuleap\Dashboard\Project\ProjectDashboardRouter->route( ??? )	.../Home.php:141
    6	0.2356	4820024	Tuleap\Dashboard\Project\ProjectDashboardController->display( ??? )	.../ProjectDashboardRouter.php:81
    7	0.2390	4832880	Tuleap\Dashboard\Project\ProjectDashboardController->getProjectDashboardsPresenter( ???, ???, ???, ??? )	.../ProjectDashboardController.php:159
    8	0.2487	4837736	Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getWidgetsPresenter( ???, ???, ???, ??? )	.../ProjectDashboardController.php:385
    9	0.2487	4837736	Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getColumnsPresenterByLine( ???, ???, ???, ??? )	.../DashboardWidgetPresenterBuilder.php:62
    10	0.2487	4837736	Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getWidgetsPresenterByColumn( ???, ???, ???, ??? )	.../DashboardWidgetPresenterBuilder.php:84
    11	0.3788	5570832	Tuleap\Dashboard\Widget\DashboardWidgetPresenter->__construct( ???, ???, ???, ??? )	.../DashboardWidgetPresenterBuilder.php:111
    12	0.3789	5570936	Tuleap\Widget\ProjectMembers\ProjectMembers->getContent( )	.../DashboardWidgetPresenter.php:86
    13	0.3886	5596344	Tuleap\Widget\ProjectMembers\AdministratorPresenterBuilder->build( ??? )	.../ProjectMembers.php:65
    14	0.3912	5639136	EventManager->processEvent( ???, ??? )	.../AdministratorPresenterBuilder.php:65
    15	0.3912	5639136	EventManager->dispatch( ??? )	.../EventManager.class.php:98
    16	0.3913	5639136	EventManager->processEventOnListener( ???, ???, ??? )	.../EventManager.class.php:146
    17	0.3913	5639136	Tuleap\Plugin\PluginLoader->Tuleap\Plugin\{closure:/usr/share/tuleap/src/common/plugin/PluginLoader.php:70-73}( ???, ??? )	.../EventManager.class.php:116
    18	0.3916	5643648	EventManager->eventManagerDispatch( ???, ???, ???, ???, ??? )	.../PluginLoader.php:72
    19	0.3916	5643648	project_ownershipPlugin->userWithStarBadgeCollector( ??? )	.../EventManager.class.php:127
    20	0.3919	5644416	Tuleap\ProjectOwnership\ProjectOwner\UserWithStarBadgeFinder->findBadgedUser( ??? )	.../project_ownershipPlugin.php:192
    
    Dashboard & Widgets
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Nicolas Terray (nterray)
    Closed
    2021-05-11
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-05-11 16:19

    Integrated into Tuleap 12.8.99.123.


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-05-11