Fixes #2821 - AuthenticationProtocolHandler should not always cache Authentication.Result.

Now the Result is cached only if getURI() returns non-null.
This commit is contained in:
Simone Bordet 2018-08-24 17:32:35 +02:00
parent 3b6fa32684
commit 33a1367325
1 changed files with 3 additions and 1 deletions

View File

@ -65,7 +65,9 @@ public class HttpAuthenticationStore implements AuthenticationStore
@Override
public void addAuthenticationResult(Authentication.Result result)
{
results.put(result.getURI(), result);
URI uri = result.getURI();
if (uri != null)
results.put(uri, result);
}
@Override