Community
Participate
Working Groups
If the mirror styler is called before setMode is called is barfs this exception: mode is null getState(lineIndex=0)mirror.js (line 532) highlight(startLine=0, endLine=20, partial=true)mirror.js (line 409) onLineStyle(e=Object { type="LineStyle", textView={...}, lineIndex=0, more...})mirror.js (line 729) onLineStyle(e=Object { type="LineStyle", textView={...}, lineIndex=0, more...})mirror.js (line 684) dispatchEvent(evt=Object { type="LineStyle", textView={...}, lineIndex=0, more...})eventTarget.js (line 72) onLineStyle(lineStyleEvent=Object { type="LineStyle", textView={...}, lineIndex=0, more...})textView.js (line 874) _createLine(parent=DocumentFragment { constructor=DocumentFragment, nodeName="#document-fragment", nodeType=11, more...}, div=null, document=Document about:blank, lineIndex=0, model=Object { _lastLineIndex=0, _text=[1], _lineOffsets=[66], more...})textView.js (line 3354) _updatePage(hScrollOnly=undefined)textView.js (line 5783) _createContent()textView.js (line 3892) _createViewTimer()textView.js (line 3746) [Break On This Error] return mode.startState(); mirror.js (line 532)
Added some null checks http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=89c1a553524205b5644558bc4c57a8301501d8cf