NPreferences constructor Null safety

NPreferences()