From c8f82814ca3d456dcaed3f3802d514f75d40a95f Mon Sep 17 00:00:00 2001 From: jquense Date: Sun, 13 Sep 2015 13:07:03 +0300 Subject: [PATCH] [fixed] null exception on empty agenda view --- src/Agenda.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Agenda.jsx b/src/Agenda.jsx index 08b929d38..2ade8c86a 100644 --- a/src/Agenda.jsx +++ b/src/Agenda.jsx @@ -159,6 +159,9 @@ let Agenda = React.createClass({ let header = this.refs.header; let firstRow = this.refs.tbody.firstChild + if (!firstRow) + return + let isOverflowing = this.refs.content.scrollHeight > this.refs.content.clientHeight; let widths = this._widths || []