                 j += 1
             mesg.page = r.slice(i+1,j)
 
-        if mesg.file.slice(0,2) == './'
+        if mesg.file?.slice(0,2) == './'
             mesg.file = mesg.file.slice(2)
 
         elt = @_error_message_template.clone().show()

            return false

        @element.find("a[href=\"#zoom-preview-out\"]").click () =>
            @preview.zoom(delta:-5)
            @set_conf(zoom_width:@preview.zoom_width)
            return false

        @element.find("a[href=\"#zoom-preview-in\"]").click () =>

                @forward_search(active:true)

    render_error_message: (mesg) =>
        if not mesg.line
            r = mesg.raw
            i = r.lastIndexOf('[')
