From 1e744e3db75f99f106aceae66cbb3aa3022762f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrg=20Lehni?= <juerg@scratchdisk.com>
Date: Wed, 21 Nov 2012 10:38:54 -0800
Subject: [PATCH] Handle case where no project is created through execution
 errors.

---
 src/core/PaperScope.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/PaperScope.js b/src/core/PaperScope.js
index 81cc3521..295d9552 100644
--- a/src/core/PaperScope.js
+++ b/src/core/PaperScope.js
@@ -90,7 +90,7 @@ var PaperScope = this.PaperScope = Base.extend(/** @lends PaperScope# */{
 	 * @bean
 	 */
 	getView: function() {
-		return this.project.view;
+		return this.project && this.project.view;
 	},
 
 	/**