diff --git a/src/obidms.c b/src/obidms.c index de555a2..71f1ed0 100755 --- a/src/obidms.c +++ b/src/obidms.c @@ -1659,6 +1659,12 @@ int obi_import_view(const char* dms_path_1, const char* dms_path_2, const char* else // Non-typed view view_2 = obi_new_view(dms_2, view_name_2, NULL, NULL, (view_1->infos)->comments); + if (view_2 == NULL) + { + obidebug(1, "\nError creating the new view to import a view in a DMS"); + return -1; + } + // Import line count view_2->infos->line_count = view_1->infos->line_count;