Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
handle ApplicationState.SCHEMA not present
patch by jbellis for CASSANDRA-4427
  • Loading branch information
jbellis committed Jul 29, 2012
1 parent 80c3b2d commit 916acd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/org/apache/cassandra/service/StorageService.java
Expand Up @@ -571,7 +571,8 @@ private void joinTokenRing(int delay) throws IOException, org.apache.cassandra.c
continue;
}

if (!entry.getValue().getApplicationState(ApplicationState.SCHEMA).value.equals(Schema.emptyVersion.toString()))
VersionedValue schemaValue = entry.getValue().getApplicationState(ApplicationState.SCHEMA);
if (schemaValue != null && !schemaValue.value.equals(Schema.emptyVersion.toString()))
{
schemaPresent = true;
break;
Expand Down

0 comments on commit 916acd4

Please sign in to comment.