From 90c2ff74802267c973357a2d4ef967ad337bfbb7 Mon Sep 17 00:00:00 2001 From: Rokt33r Date: Wed, 29 Jul 2015 22:41:17 +0900 Subject: [PATCH] =?UTF-8?q?Debug:=20Finder=E3=81=8B=E3=82=89=E6=A4=9C?= =?UTF-8?q?=E7=B4=A2=E3=81=97=E3=81=A6=E7=B5=90=E6=9E=9C=E3=81=8C=E4=BD=95?= =?UTF-8?q?=E3=82=82=E3=81=AA=E3=81=8F=E3=81=AA=E3=81=A3=E3=81=A6=E3=81=8B?= =?UTF-8?q?=E3=82=89Finder=E8=87=AA=E4=BD=93=E3=81=8C=E5=83=8D=E3=81=8B?= =?UTF-8?q?=E3=81=AA=E3=81=8F=E3=81=AA=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- browser/finder/Components/FinderList.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/browser/finder/Components/FinderList.jsx b/browser/finder/Components/FinderList.jsx index 2227f9f1..f88b31b6 100644 --- a/browser/finder/Components/FinderList.jsx +++ b/browser/finder/Components/FinderList.jsx @@ -12,6 +12,10 @@ module.exports = React.createClass({ var index = this.props.articles.indexOf(this.props.currentArticle) var el = React.findDOMNode(this) var li = el.querySelectorAll('li')[index] + + if (li == null) { + return + } var overflowBelow = el.clientHeight + el.scrollTop < li.offsetTop + li.clientHeight if (overflowBelow) {