diff options
Diffstat (limited to 'c++/src/H5Exception.cpp')
-rw-r--r-- | c++/src/H5Exception.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c++/src/H5Exception.cpp b/c++/src/H5Exception.cpp index 3eeb2b8..86b399f 100644 --- a/c++/src/H5Exception.cpp +++ b/c++/src/H5Exception.cpp @@ -35,7 +35,8 @@ Exception::Exception(const string& func_name, const string& message) : detailMes Exception::Exception(const char* func_name, const char* message) { detailMessage = string(message); - funcName = string(func_name); + if (func_name != NULL) + funcName = string(func_name); } // copy constructor |