force memoryType to persistent when it is not initialized

This commit is contained in:
Roberto Cirillo 2021-09-02 15:29:58 +02:00
parent d100ad4f13
commit 5fbf3e3091
1 changed files with 3 additions and 5 deletions

View File

@ -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);
}