Skip to content

Commit

Permalink
fix: extra check for undefined (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Nov 19, 2019
1 parent b920625 commit ddf67d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion typescript/src/schema/proto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,11 @@ function augmentMethod(
},
method
) as MethodDescriptorProto;
if (method.inputType && messages[method.inputType].field) {
if (
method.inputType &&
messages[method.inputType] &&
messages[method.inputType].field
) {
const paramComment: Comment[] = [];
const inputType = messages[method.inputType!];
const inputmessageName = toMessageName(method.inputType);
Expand Down

0 comments on commit ddf67d1

Please sign in to comment.