Skip to content

Commit

Permalink
Adding a null check for the versioned value object in convertStringTo…
Browse files Browse the repository at this point in the history
…Object in MetadataStore. This was causing a small problem while restarting the Voldemort server
  • Loading branch information
Chinmay Soman committed May 17, 2013
1 parent fbe2589 commit d91c249
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/java/voldemort/store/metadata/MetadataStore.java
Expand Up @@ -798,7 +798,9 @@ private Versioned<Object> convertStringToObject(String key, Versioned<String> va
valueObject = clusterMapper.readCluster(new StringReader(value.getValue()));
}
} else if(REBALANCING_SOURCE_STORES_XML.equals(key)) {
valueObject = storeMapper.readStoreList(new StringReader(value.getValue()));
if(value.getValue() != null && value.getValue().length() > 0) {
valueObject = storeMapper.readStoreList(new StringReader(value.getValue()));
}
} else {
throw new VoldemortException("Unhandled key:'" + key
+ "' for String to Object serialization.");
Expand Down

0 comments on commit d91c249

Please sign in to comment.