You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/09/19 13:35:22 UTC

[GitHub] [rocketmq-schema-registry] humkum commented on issue #62: Why will an exception be thrown when the schema does not exist?

humkum commented on issue #62:
URL: https://github.com/apache/rocketmq-schema-registry/issues/62#issuecomment-1251030783

   I may not understand your request, but I found that if there didn't throw an exception. It would cause NPE in GetSchemaResponse constructor as follows:
   
   ```
   public GetSchemaResponse(QualifiedName name, SchemaRecordInfo schemaRecordInfo) {
           this.subjectFullName = name.subjectFullName();
           this.schemaFullName = schemaRecordInfo.getSchema();
           this.recordId = CommonUtil.getSchemaRecordId(schemaRecordInfo.getSchemaId(),
               schemaRecordInfo.getVersion());
           this.idl = schemaRecordInfo.getIdl();
           this.dependency = schemaRecordInfo.getDependency();
           this.type = schemaRecordInfo.getType();
           this.fields = parse(idl);
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org