Do not call nc_close on null object in NcFile destructor

This commit is contained in:
Jarle Ladstein 2014-01-10 10:38:58 +01:00
parent 1d9f9eda36
commit 2f26ae3fc6

View File

@ -17,6 +17,7 @@ NcFile::~NcFile()
// causes undefined behaviour! so just printing a warning message
try
{
if (!nullObject)
ncCheck(nc_close(myId),__FILE__,__LINE__);
}
catch (NcException &e)