Addd handling of NULL

This commit is contained in:
Robert Osfield
2016-06-30 08:02:29 +01:00
parent de6eb1d97e
commit 73cdc67367

View File

@@ -1026,6 +1026,13 @@ void ply_get_element_setup( PlyFile *plyfile, char *elem_name, int nprops,
/* find information about the element */
elem = find_element (plyfile, elem_name);
if (!elem)
{
fprintf ( stderr, "Warning: Can't find in element '%s'\n", elem_name );
return;
}
plyfile->which_elem = elem;
/* deposit the property information into the element's description */