From 4d40157d784cc04275e63f202e96ef43bd95e678 Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Mon, 30 Oct 2023 12:00:57 -0700 Subject: [PATCH] Replaced returning null with throwing a BindingException --- src/bgen/TypeManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgen/TypeManager.cs b/src/bgen/TypeManager.cs index af9eef1c3054..f8647ed649cd 100644 --- a/src/bgen/TypeManager.cs +++ b/src/bgen/TypeManager.cs @@ -480,7 +480,7 @@ public string FormatType (Type? usedIn, string @namespace, string name) public string FormatTypeUsedIn (string? usedInNamespace, Type? type, bool protocolized = false) { if (type is null) - return "null"; + throw new BindingException (1065, true ); if (type == System_Void) return "void"; if (type == System_SByte)