| Summary: | NPE in mirror.js when setMode not called | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Felipe Heidrich <eclipse.felipe> |
| Component: | Editor | Assignee: | Mark Macdonald <mamacdon> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mamacdon |
| Version: | 0.3 | ||
| Target Milestone: | 0.4 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
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)