PHP Fatal error: Uncaught Error: Call to a member function getClassFromWidgetDef() on null

v 7.14.3 | PHP 8.2
Upgraded from 7.13

I am getting an error here.

Code on 63:

$widgetClass = $this->layoutManager->getClassFromWidgetDef($widgetDef, true);

The code looks same here too!

I am guessing it is some related to PHP 8.2 version but cannot find solution. Any direction would be appreciated. :sparkles:

I found a solution :melting_face:

The code file here! :page_with_curl:

line 121 should be :ballot_box_with_check:

public function __construct($id, $options = null)

It was before: :negative_squared_cross_mark:

public function DashletGeneric($id, $options = null)

Hope :crossed_fingers: it will help someone in the future