Skip to content

Commit

Permalink
Avoid potential null pointer deref of config
Browse files Browse the repository at this point in the history
  • Loading branch information
voldemort committed Jul 3, 2013
1 parent 854a99a commit 98a0beb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java/voldemort/client/ZenStoreClient.java
Expand Up @@ -111,10 +111,10 @@ public ZenStoreClient(String storeName,
if(config != null) {
asyncMetadataManager = scheduleAsyncMetadataVersionManager(clientId.toString(),
config.getAsyncMetadataRefreshInMs());
clientRegistryRefresher = registerClient(clientId,
config.getClientRegistryUpdateIntervalInSecs());
}

clientRegistryRefresher = registerClient(clientId,
config.getClientRegistryUpdateIntervalInSecs());

logger.info("Voldemort client created: " + clientId + "\n" + clientInfo);
}

Expand Down

0 comments on commit 98a0beb

Please sign in to comment.