Skip to content

Commit

Permalink
refactor(protobuf): ensure TypeValue is never null with default empty…
Browse files Browse the repository at this point in the history
… string
  • Loading branch information
phodal committed Oct 25, 2024
1 parent c5d6d35 commit a4e1fa9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ProtobufFullIdentListener(var fileName: String) : Protobuf3BaseListener()
return CodeField(
TypeType = child.type_().text,
TypeKey = child.fieldName().text,
TypeValue = child.fieldNumber().text,
TypeValue = child.fieldNumber()?.text ?: "",
Modifiers = child.fieldLabel()?.text?.let { listOf(it) } ?: emptyList()
)
}
Expand Down

0 comments on commit a4e1fa9

Please sign in to comment.