[feaLib.builder] do not make <NULL> ValueRecord

This commit is contained in:
Cosimo Lupo 2019-01-19 12:11:14 +00:00
parent 091b05296d
commit 23f0b5f5b1
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -1114,7 +1114,7 @@ _VALUEREC_ATTRS = {
def makeOpenTypeValueRecord(v, pairPosContext):
"""ast.ValueRecord --> (otBase.ValueRecord, int ValueFormat)"""
if v is None:
if not v:
return None, 0
vr = {}