From da32f4f344bd7b55eaa88ae0a7245244684b402b Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Wed, 17 Nov 2021 11:52:15 -0500 Subject: [PATCH] Avoid crash in unmount if journal is null --- src/recordings.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/recordings.jsx b/src/recordings.jsx index 96a408ba..c99aa0e0 100644 --- a/src/recordings.jsx +++ b/src/recordings.jsx @@ -285,7 +285,9 @@ class Logs extends React.Component { } componentWillUnmount() { - this.journalCtl.stop(); + if (this.journalCtl) { + this.journalCtl.stop(); + } this.setState({ serverTimeOffset: null, cursor: null,