From 94f448c82ea3da610c8aca0030f977d1f54741d6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 15 Nov 2016 23:03:38 +0100 Subject: [PATCH] Fix a null pointer exception in the frontend. --- www/js/remoteglot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index b049c32..333bd5c 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -772,7 +772,7 @@ window['collapse_history'] = collapse_history; * Also recreates the global "display_lines". */ var update_refutation_lines = function() { - if (base_fen === null) { + if (base_fen === null || current_display_line === null) { return; } if (display_lines.length > 2) { -- 2.39.2