Skip to content

Commit 29aa265

Browse files
author
unknown
committed
Fix issue 245.
view can be null when using multiple column layout; add a null guard to avoid NoneType exception.
1 parent 88af18b commit 29aa265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typescript/libs/view_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def get_info(view):
4040
cli.initialize()
4141

4242
info = None
43-
if view.file_name() is not None:
43+
if view is not None and view.file_name() is not None:
4444
file_name = view.file_name()
4545
if is_typescript(view):
4646
info = _file_map.get(file_name)

0 commit comments

Comments
 (0)