Corrected a couple of dereferencing-null errors identified by static analysis.
Corrected a couple of dereferencing-null errors identified by static analysis.

Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c