Skip to content

Commit

Permalink
HOTFIX-3715 ISSUE-653 : Fix NPE while deleting schema metadata with n…
Browse files Browse the repository at this point in the history
…o schema versions (#654)

(cherry picked from commit 7e524f6)
  • Loading branch information
raju-saravanan authored and Tamas Horvath committed Dec 14, 2020
1 parent bbc990e commit 98638b5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,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 98638b5

Please sign in to comment.