Fix null pointer issue.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com> Change-Id: I7afe7c83c96f94584372db9d709e91563ece8b51
This commit is contained in:
parent
c19c9718e6
commit
20500adc26
1 changed files with 1 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue