Unverified Commit b38bf47a authored by keboca's avatar keboca Committed by TravisCarden

Issue #3122093 by keboca: Call to a member function get() on null at checklistapi_update_8001

parent c1d4bbfa
......@@ -16,6 +16,14 @@ function checklistapi_update_8001() {
foreach ($definitions as $id => $definition) {
$checklist = checklistapi_checklist_load($id);
/**
* Avoid trying to operate on null due to failure to load a checklist.
* @see https://www.drupal.org/project/checklistapi/issues/3122093
*/
if (!$checklist->config) {
continue;
}
$config = $checklist->config->get(ChecklistapiChecklist::PROGRESS_CONFIG_KEY);
$config['#items'] = [];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment