Diagnostic constructor Null safety

Diagnostic()