summaryrefslogtreecommitdiffstats
path: root/src/vim9type.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vim9type.c')
-rw-r--r--src/vim9type.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vim9type.c b/src/vim9type.c
index b6687b0896..ff259f4941 100644
--- a/src/vim9type.c
+++ b/src/vim9type.c
@@ -337,7 +337,11 @@ typval2type_int(typval_T *tv, int copyID, garray_T *type_gap, int flags)
if (tv->v_type == VAR_STRING)
return &t_string;
if (tv->v_type == VAR_BLOB)
+ {
+ if (tv->vval.v_blob == NULL)
+ return &t_blob_null;
return &t_blob;
+ }
if (tv->v_type == VAR_LIST)
{