From 19ff2bd9862dbdb50ed426adef076dc889b3d044 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 29 Sep 2014 11:21:33 -0600 Subject: [PATCH] Set the project path is the represented file path if undefined for item This prevents exceptions on the browser process from passing a null argument over IPC. --- src/workspace.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workspace.coffee b/src/workspace.coffee index 3bdf1d2bb..1ada6d89b 100644 --- a/src/workspace.coffee +++ b/src/workspace.coffee @@ -139,7 +139,7 @@ class Workspace extends Model if projectPath = atom.project?.getPath() if item = @getActivePaneItem() document.title = "#{item.getTitle?() ? 'untitled'} - #{projectPath}" - atom.setRepresentedFilename(item.getPath?()) + atom.setRepresentedFilename(item.getPath?() ? projectPath) else document.title = projectPath atom.setRepresentedFilename(projectPath)