Browse Source

[macro] catch unexpected null type

Rudy Ges 1 year ago
parent
commit
323d2c494e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/macro/macroApi.ml

+ 1 - 0
src/macro/macroApi.ml

@@ -846,6 +846,7 @@ and decode_field v =
 	}
 
 and decode_ctype t =
+	if t = vnull then raise Invalid_expr;
 	let (i,args),p = decode_enum_with_pos t in
 	(match i,args with
 	| 0, [p] ->