Kernel constructor Null safety

Kernel()