force memoryType to persistent when it is not initialized
This commit is contained in:
parent
d100ad4f13
commit
5fbf3e3091
|
@ -350,11 +350,9 @@ public class StorageIDResolver {
|
|||
}
|
||||
|
||||
StorageClient client;
|
||||
if(memory==null)
|
||||
client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC);
|
||||
else
|
||||
client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC, memory);
|
||||
|
||||
if(memory==null)
|
||||
memory=MemoryType.PERSISTENT;
|
||||
client=new StorageClient(StorageIDResolver.class.getName(), StorageIDResolver.class.getSimpleName(), STORAGEID_RESOLVER, AccessType.PUBLIC, memory);
|
||||
return new StorageClientInstance(client, memory, storageId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue