[TC Fixed] Index out of range
[platform/core/dotnet/launcher.git] / tests / TCs / 6_TOOL / TOOL.py
index 82ecb58..9b3a232 100755 (executable)
@@ -440,7 +440,7 @@ def main():
     args = parser.parse_args()
 
     global tc_array
-    if "TC_" in args.TC_NUMBER[0]:
+    if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]:
         tc_array = []
         for tc_num in args.TC_NUMBER:
             if tc_num not in funcMap: