         item = document.createElement('div')
         item.classList.add 'arrow_box'
         item.textContent = description
-        atom.workspace.getActiveTextEditor().decorateMarker(m, {type:'overlay', item}, position:'head')
+        atom.workspace.getActiveTextEditor().decorateMarker(m, {type:'overlay', item}, position:'head') if m?
 
         @errorMarkers.push(m)
 

        queryInfo.marker = marker
        @processedQueries.push queryInfo

        editor.decorateMarker(marker, type: 'line-number', class: 'query-loading')
    escapeRegExp: (str) ->
        str = str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
        return str.replace(/(?:\r\n|\r|\n)/g, '[\\r?\\n]');

                    classType = 'query-error'
                    timeout = 5000
                marker = editor.markBufferRange(query.range, invalidate: 'overlap')
                editor.decorateMarker(marker, type: 'line-number', class: classType) if marker?

                @setErrorMarker(result, query)

