Skip to content

Commit

Permalink
Fixes null pointer when user tries to cut in timeline and no data is …
Browse files Browse the repository at this point in the history
…loaded.
  • Loading branch information
pstjvn committed Mar 18, 2013
1 parent 6697718 commit ff2c6f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/components/editor.js
Expand Up @@ -359,6 +359,7 @@ tl.Editor.prototype.removeSelected = function() {
*/
tl.Editor.prototype.split = function() {
var model = this.getModel();
if (!goog.isDefAndNotNull(model)) return;
if (model.length < 1) return;
var ct = this.getCurrentTime();
if (ct == 0 || ct == this.getDuration()) return;
Expand Down

0 comments on commit ff2c6f2

Please sign in to comment.