From 20500adc262ee8c5d2121de14ae8721d07749dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6kay=20=C5=9Eat=C4=B1r?= Date: Thu, 6 Jun 2024 12:27:27 +0300 Subject: [PATCH] Fix null pointer issue. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Gökay Şatır Change-Id: I7afe7c83c96f94584372db9d709e91563ece8b51 --- browser/src/control/Control.ServerAuditDialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/src/control/Control.ServerAuditDialog.ts b/browser/src/control/Control.ServerAuditDialog.ts index e5ce62236..c2694e628 100644 --- a/browser/src/control/Control.ServerAuditDialog.ts +++ b/browser/src/control/Control.ServerAuditDialog.ts @@ -162,7 +162,7 @@ class ServerAuditDialog { if (app.serverAudit.length) { // TODO: enable annoying snackbar later - if (viewInfo && viewInfo.userextrainfo.is_admin === true) { + if (viewInfo && viewInfo.userextrainfo && viewInfo.userextrainfo.is_admin === true) { this.map.uiManager.showSnackbar( _('Check security warnings of your server'), _('OPEN'),