mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1402: crash when using null_class
Problem: Crash when using null_class. Solution: Give an error when trying to use a null class.
This commit is contained in:
@@ -1262,6 +1262,12 @@ class_object_index(
|
||||
cl = rettv->vval.v_object->obj_class;
|
||||
}
|
||||
|
||||
if (cl == NULL)
|
||||
{
|
||||
emsg(_(e_incomplete_type));
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
if (*name_end == '(')
|
||||
{
|
||||
int on_class = rettv->v_type == VAR_CLASS;
|
||||
|
Reference in New Issue
Block a user