Skip to content

Commit

Permalink
Fix decoding of desired internal process name
Browse files Browse the repository at this point in the history
  • Loading branch information
zorgiepoo committed Oct 28, 2023
1 parent 34b9547 commit 98e9ad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bit Slicer/ZGDocument.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ - (BOOL)readFromFileWrapper:(NSFileWrapper *)fileWrapper ofType:(NSString *)__un
_data.variables = [NSArray array];
}

id desiredProcessInternalName = [keyedUnarchiver decodeObjectOfClasses:[NSSet setWithArray:@[NSString.class, NSNull.class]] forKey:ZGWatchVariablesArrayKey];
id desiredProcessInternalName = [keyedUnarchiver decodeObjectOfClasses:[NSSet setWithArray:@[NSString.class, NSNull.class]] forKey:ZGProcessInternalNameKey];
if (desiredProcessInternalName == [NSNull null] || ![(id<NSObject>)desiredProcessInternalName isKindOfClass:[NSString class]])
{
_data.desiredProcessInternalName = nil;
Expand Down

0 comments on commit 98e9ad9

Please sign in to comment.