From 9ec3e457db069f5a6195c8c07f85fcb3a4e0c031 Mon Sep 17 00:00:00 2001 From: Jon Reid Date: Thu, 19 Apr 2012 14:35:37 -0700 Subject: Timeline: Bug fix: check for uninitialized currentDocument in intialization routine. --- js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/panels') diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 0b688139..a2f19b28 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js @@ -675,7 +675,9 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { handleBreadCrumbBinding:{ value:function(event){ - + if (this.application.ninja.currentDocument == null) { + return; + } if((typeof(this.application.ninja.currentDocument.isTimelineInitialized) === "undefined")) return; if(this.application.ninja.currentDocument.breadCrumbClick){ -- cgit v1.2.3