Commit eea3d138 authored by Petri Hintukainen's avatar Petri Hintukainen

Return copy of array

parent a6115a27
......@@ -66,7 +66,10 @@ public class ServiceContextFactoryImpl extends ServiceContextFactory {
SecurityManager sec = System.getSecurityManager();
if (sec != null)
sec.checkPermission(new ServiceContextPermission("access", "own"));
return serviceContexts;
ServiceContext[] r = new ServiceContext[1];
r[0] = serviceContexts[0];
return r;
} catch (Exception e) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment