Fixed the segmentation fault in dotnettool (#437) accepted/tizen/unified/20220927.132406
author최종헌/Common Platform Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Mon, 26 Sep 2022 07:28:49 +0000 (16:28 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 26 Sep 2022 07:28:49 +0000 (16:28 +0900)
Change-Id: I9fff49ed5d130483f46ebeed4603ef076619f885

NativeLauncher/tool/dotnettool.cc

index 24d5e48..4343b49 100644 (file)
@@ -188,6 +188,12 @@ int main(int argc, char* argv[])
                }
        }
 
+       if (args.size() == 0) {
+               _SERR("The command is missing");
+               DisplayUsage();
+               return -1;
+       }
+
        if (opt->flags & NI_FLAGS_INPUT_BUBBLE_REF && !(opt->flags & NI_FLAGS_INPUT_BUBBLE)) {
                _SERR("--inputbubbleref option should be used with --inputbubble option");
                DisplayUsage();