mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 22:42:18 +00:00
fixed wrong usage of non-null API
This commit is contained in:
@@ -213,8 +213,11 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
|
||||
NSInteger row = self.windowAssociationsTableView.selectedRow;
|
||||
if(row > - 1 && row < self.representedEntry.autotype.associations.count) {
|
||||
[self.observer willChangeModelProperty];
|
||||
[self.representedEntry.autotype removeAssociation:self.representedEntry.autotype.associations[row]];
|
||||
[self.observer didChangeModelProperty];
|
||||
KPKWindowAssociation *association = self.representedEntry.autotype.associations[row];
|
||||
if(association) {
|
||||
[self.representedEntry.autotype removeAssociation:association];
|
||||
[self.observer didChangeModelProperty];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user