diff --git a/Source/common/SNTFileAccessEvent.m b/Source/common/SNTFileAccessEvent.m index 839bf10b3..fcdb2965e 100644 --- a/Source/common/SNTFileAccessEvent.m +++ b/Source/common/SNTFileAccessEvent.m @@ -48,6 +48,7 @@ + (BOOL)supportsSecureCoding { } - (void)encodeWithCoder:(NSCoder *)coder { + [super encodeWithCoder:coder]; ENCODE(accessedPath); ENCODE(ruleVersion); ENCODE(ruleName); @@ -55,7 +56,7 @@ - (void)encodeWithCoder:(NSCoder *)coder { } - (instancetype)initWithCoder:(NSCoder *)decoder { - self = [super init]; + self = [super initWithCoder:decoder]; if (self) { DECODE(accessedPath, NSString); DECODE(ruleVersion, NSString);