From: Mathieu Baudier Date: Sun, 14 Feb 2021 16:08:33 +0000 (+0100) Subject: Make log in from anonymous more robust. X-Git-Tag: argeo-suite-2.1.21~1^2 X-Git-Url: https://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=commitdiff_plain;h=88ea3e9381606ed2a8892ca3ac09495ae48e4e45;ds=sidebyside Make log in from anonymous more robust. --- diff --git a/core/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteApp.java b/core/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteApp.java index 6082480..63a09f1 100644 --- a/core/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteApp.java +++ b/core/org.argeo.suite.ui/src/org/argeo/suite/ui/SuiteApp.java @@ -175,7 +175,8 @@ public class SuiteApp extends AbstractCmsApp implements EventHandler { state = null; CmsSession cmsSession = cmsView.getCmsSession(); if (ui.getUserDir() == null) { - if (cmsView.isAnonymous()) { + // FIXME NPE on CMSSession when logging in from anonymous + if (cmsSession==null || cmsView.isAnonymous()) { assert publicBasePath != null; ui.initSessions(getRepository(), publicBasePath); } else {