In reply to khnabeel:
There should be some more information regarding the fatal error. Is it due to a null object or something else? Please post the entire message regarding the fatal error.
Also, which line is line 47? It is hard to figure that out from the code you posted.
An initial guess is that maybe the configuration object defines is_active as FALSE, which results in the sequencer and driver not being built, resulting in null objects. But that is only a guess without seeing more information.