소스 검색

null check

Michael Wang 4 년 전
부모
커밋
774173771a
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/utils/nativeExe.js

+ 5 - 1
src/utils/nativeExe.js

@@ -93,7 +93,11 @@ export function nodeCheckRemoteDesktop() {
     .nodeRequire("child_process")
     .execSync("tasklist")
     .toString();
-  if (appList && appList.match(/sunloginclient/gi).length > 0) {
+  if (
+    appList &&
+    appList.match(/sunloginclient/gi) &&
+    appList.match(/sunloginclient/gi).length > 0
+  ) {
     return true;
   } else {
     return false;