Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js

Issue 2528713003: DevTools: fix exception when setting a breakpoint in sourcemap source (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
diff --git a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
index db077fbe060113505cf4b31cb4cbccc564676ecd..29533c3113049e00b0055513a28fd3b751794c11 100644
--- a/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
+++ b/third_party/WebKit/Source/devtools/front_end/text_editor/CodeMirrorTextEditor.js
@@ -1303,7 +1303,7 @@ TextEditor.CodeMirrorPositionHandle = class {
* @return {?{lineNumber: number, columnNumber: number}}
*/
resolve() {
- var lineNumber = this._codeMirror.getLineNumber(this._lineHandle);
+ var lineNumber = this._lineHandle ? this._codeMirror.getLineNumber(this._lineHandle) : null;
if (typeof lineNumber !== 'number')
return null;
return {lineNumber: lineNumber, columnNumber: this._columnNumber};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698