mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fix NPE after last re-factor.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2629 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -121,6 +121,7 @@ public class StoreRedirectorProxyFactory<I> implements FactoryBean, Initializing
|
||||
/* (non-Javadoc)
|
||||
* @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public void afterPropertiesSet() throws ServiceException
|
||||
{
|
||||
ParameterCheck.mandatory("Proxy Interface", proxyInterface);
|
||||
@@ -238,9 +239,12 @@ public class StoreRedirectorProxyFactory<I> implements FactoryBean, Initializing
|
||||
// Extract store type from argument, if store type provided
|
||||
StoreRef argStoreRef = null;
|
||||
if (argTypes[i].equals(NodeRef.class))
|
||||
{
|
||||
if (args[i] != null)
|
||||
{
|
||||
argStoreRef = ((NodeRef) args[i]).getStoreRef();
|
||||
}
|
||||
}
|
||||
else if (argTypes[i].equals(StoreRef.class))
|
||||
{
|
||||
argStoreRef = ((StoreRef) args[i]);
|
||||
|
Reference in New Issue
Block a user