From 4825d33aef96bc44f53a5d330beb7d0f77c1a477 Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Mon, 4 Nov 2019 20:58:19 +0900 Subject: [PATCH] [Glitch] dont crash with null-ref Port f28877756ebd348ce9d2221c9d63d64dc3dcf897 to glitch-soc Signed-off-by: Thibaut Girka --- app/javascript/flavours/glitch/features/ui/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js index e5925a484d..646def8f29 100644 --- a/app/javascript/flavours/glitch/features/ui/index.js +++ b/app/javascript/flavours/glitch/features/ui/index.js @@ -174,7 +174,9 @@ class SwitchingColumnsArea extends React.PureComponent { } setRef = c => { - this.node = c.getWrappedInstance(); + if (c) { + this.node = c.getWrappedInstance(); + } } render () {