소스 검색

Merge pull request #4931 from sebavan/master

Try Fix Inspector Forum Issue
sebavan 7 년 전
부모
커밋
0dff2cda6a
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      inspector/src/helpers/Helpers.ts

+ 4 - 2
inspector/src/helpers/Helpers.ts

@@ -141,8 +141,10 @@ export class Helpers {
      * Removes all children of the given div.
      */
     public static CleanDiv(div: HTMLElement) {
-        while (div.firstChild) {
-            div.removeChild(div.firstChild);
+        if (div) {
+            while (div.firstChild) {
+                div.removeChild(div.firstChild);
+            }
         }
     }