Issue #2482 Protect against NPE in MemcachedSessionDataMapFactory
This commit is contained in:
parent
44dfa868df
commit
9c81443792
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue