Skip to content

Commit

Permalink
ISSUE-653 : Fix NPE while deleting schema metadata with no schema ve…
Browse files Browse the repository at this point in the history
…rsions (#654)
  • Loading branch information
raju-saravanan authored and sipeti committed Oct 21, 2020
1 parent 2ee72ba commit 6ce5918
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ public void deleteSchema(String schemaName) throws SchemaNotFoundException {
}
}
// Remove all serdes mappings for this schema name
Collection<SchemaSerDesMapping> schemaSerDesMappings = getSchemaSerDesMappings(schemaMetadataId);
SchemaMetadataInfo schemaMetadataInfo = getSchemaMetadataInfo(schemaName);
Collection<SchemaSerDesMapping> schemaSerDesMappings = getSchemaSerDesMappings(schemaMetadataInfo.getId());
if (schemaSerDesMappings != null) {
for (SchemaSerDesMapping schemaSerDesMapping: schemaSerDesMappings) {
storageManager.remove(schemaSerDesMapping.getStorableKey());
Expand Down

0 comments on commit 6ce5918

Please sign in to comment.