Description
I have concurrent scripts (using shell bin/client.sh commands) which invoke features:listurl, features:addurl and features:removeurl.
Sometimes I get NullPointerException here:
public Repository[] listRepositories() { Collection<Repository> repos = repositories.values(); return repos.toArray(new Repository[repos.size()]); }
when org.apache.karaf.features.internal.FeaturesServiceImpl#removeRepository(java.net.URI) is invoked between repos.size() and repos.toArray().