diff --git a/lib/client/editor.js b/lib/client/editor.js index 54c9de15..9b130124 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -152,7 +152,8 @@ CloudCommander.Editor.CodeMirror.show = (function(){ lErrorImage.className = 'icon error'; lErrorImage.title = jqXHR.responseText; - lCurrent.firstChild.appendChild(lErrorImage); + if(lCurrent) + lCurrent.appendChild(lErrorImage); lLoadingImage.className = 'hidden';