diff --git a/idl_tool_2/util/options.cpp b/idl_tool_2/util/options.cpp index e521d4e9f0b55707c9e15660536d4dd95668123b..551a9034fc1fdd0346997139f36e383676b79162 100644 --- a/idl_tool_2/util/options.cpp +++ b/idl_tool_2/util/options.cpp @@ -63,6 +63,10 @@ Options &Options::GetInstance() bool Options::Parse(int argc, char *argv[]) { + if (argv == nullptr) { + Logger::E(TAG, "argv is NULL"); + return false; + } int ret = true; program = argv[0]; opterr = 0;