Fix null pointer issue.

Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I7afe7c83c96f94584372db9d709e91563ece8b51
This commit is contained in:
Gökay Şatır 2024-06-06 12:27:27 +03:00 committed by Gökay ŞATIR
parent c19c9718e6
commit 20500adc26

View file

@ -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'),