Issue #2482 Protect against NPE in MemcachedSessionDataMapFactory

This commit is contained in:
Jan Bartel 2018-05-01 11:41:01 +10:00
parent 44dfa868df
commit 9c81443792
1 changed files with 6 additions and 3 deletions

View File

@ -44,9 +44,12 @@ public class MemcachedSessionDataMapFactory implements SessionDataMapFactory
{
if (addresses == null)
_addresses = null;
_addresses = new ArrayList<>();
for (InetSocketAddress a:addresses)
_addresses.add(a);
else
{
_addresses = new ArrayList<>();
for (InetSocketAddress a:addresses)
_addresses.add(a);
}
}
/**