From 6341350134cc638989c31ac3176842a308c56b6a Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 12 Dec 2012 13:30:49 +0000 Subject: [PATCH] prevent NPE when guest user not exists git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1420664 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/web/security/ArchivaConfigurableUsersManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java index 7fd0776e1..2f2c51a8d 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/security/ArchivaConfigurableUsersManager.java @@ -206,7 +206,7 @@ public class ArchivaConfigurableUsersManager } } - if ( user == null ) + if ( user == null && lastException != null ) { throw lastException; }