Closed (fixed)
Project:
Module Builder
Version:
4.2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2026 at 18:18 UTC
Updated:
21 May 2026 at 15:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
jedihe commentedQuick testing shows the fix working fine.
Comment #4
joachim commented> $task_report_summary = $this->drupalCodeBuilder->getTask('ReportSummary');
That should not be getting a NULL -- it should either get you the object, or throw an exception.
Could you debug to see why please?
Comment #5
ivnishSame problem. Drupal 10 clean install.
I debugged it
$this->drupalCodeBuilder->getTask('ReportSummary') return NULL
It called Factory::getTask($task_name, $task_options); It return NULL.
It called self::$environment->verifyEnvironment($required_sanity); It return NULL
And then no any error message.
Comment #6
joachim commentedThanks for debugging!
> $this->drupalCodeBuilder->getTask('ReportSummary') return NULL
That shouldn't happen. What versions of MB and DCB do you have? And did you install them with Composer?
Comment #7
ivnishYes, installed with composer. MB 4.2.2, DCB 4.6.3
Comment #8
joachim commentedCould you use the debugger to step into why getTask('ReportSummary') is returning NULL?
Comment #9
ivnishAlready. See my comment #5. Because
self::$environment->verifyEnvironment($required_sanity)return error without any message. See screenshotComment #10
joachim commentedOh I think I see the problem.
I'll fix it soon.
As a workaround, try changing to $sanity_level in ReportSummary to be NULL.
Comment #11
joachim commentedI've just released DCB 4.6.4, which should fix the problem. Please give it a try.
Comment #12
ivnishIt works, thanks
Comment #13
joachim commentedThanks for reporting back! :)