forked from public/pysim
pySim.esim.saip.ProfileElementGFM: Initialize 'fileManagementCMD'
When constructing a ProfileElmentGFM from scratch, initialize the decoded['fileManagementCMD'], as it is a mandatory member during ASN.1 encode. Change-Id: Iaae99348d36b7f0c739daf039d6ea2305b7ca9db
This commit is contained in:
@@ -622,6 +622,9 @@ class ProfileElementGFM(ProfileElement):
|
|||||||
# indexed by PE-Name
|
# indexed by PE-Name
|
||||||
self.files = {}
|
self.files = {}
|
||||||
self.tdef = asn1.types['ProfileElement'].type.name_to_member[self.type]
|
self.tdef = asn1.types['ProfileElement'].type.name_to_member[self.type]
|
||||||
|
if decoded:
|
||||||
|
return
|
||||||
|
self.decoded['fileManagementCMD'] = []
|
||||||
|
|
||||||
def supports_file_for_path(self, path: Path, adf: Optional[str] = None) -> bool:
|
def supports_file_for_path(self, path: Path, adf: Optional[str] = None) -> bool:
|
||||||
"""Does this ProfileElement support a file of given path?"""
|
"""Does this ProfileElement support a file of given path?"""
|
||||||
|
|||||||
Reference in New Issue
Block a user