mirror of https://github.com/apache/cloudstack.git
ConcurrentHashMap will through NPE on null key
This commit is contained in:
parent
cb7ae26f35
commit
7c72aa96da
|
|
@ -58,6 +58,9 @@ public class DataStoreProviderManagerImpl extends ManagerBase implements DataSto
|
|||
|
||||
@Override
|
||||
public DataStoreProvider getDataStoreProvider(String name) {
|
||||
if (name == null)
|
||||
return null;
|
||||
|
||||
return providerMap.get(name);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue