From: Eugen Rochko Date: Tue, 25 Oct 2016 09:13:16 +0000 (+0200) Subject: Guard against unexisting statuses rendering X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c1a0633a1215987c9ec4c2c35e1ce137a0c11b95;p=mastodon.git Guard against unexisting statuses rendering --- diff --git a/app/assets/javascripts/components/components/status.jsx b/app/assets/javascripts/components/components/status.jsx index 3fdb9a80c..1d1560003 100644 --- a/app/assets/javascripts/components/components/status.jsx +++ b/app/assets/javascripts/components/components/status.jsx @@ -45,6 +45,10 @@ const Status = React.createClass({ let media = ''; let { status, ...other } = this.props; + if (status === null) { + return
; + } + if (status.get('reblog', null) !== null && typeof status.get('reblog') === 'object') { let displayName = status.getIn(['account', 'display_name']);