From 54792ff4616e11c92690d9e53ca4be40693bdedb Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 1 Mar 2018 14:40:35 -0500 Subject: [PATCH] Fix overzealous assert. Sometimes we set values to nil - e.g. when re-registering through debugUI // FREEBIE --- .../ViewControllers/OWS2FAReminderViewController.swift | 9 +++++++++ SignalServiceKit/src/Storage/YapDatabaseConnection+OWS.m | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Signal/src/ViewControllers/OWS2FAReminderViewController.swift diff --git a/Signal/src/ViewControllers/OWS2FAReminderViewController.swift b/Signal/src/ViewControllers/OWS2FAReminderViewController.swift new file mode 100644 index 000000000..85875873d --- /dev/null +++ b/Signal/src/ViewControllers/OWS2FAReminderViewController.swift @@ -0,0 +1,9 @@ +// +// ReminderViewController.swift +// Signal +// +// Created by Michael Kirk on 3/1/18. +// Copyright © 2018 Open Whisper Systems. All rights reserved. +// + +import Foundation diff --git a/SignalServiceKit/src/Storage/YapDatabaseConnection+OWS.m b/SignalServiceKit/src/Storage/YapDatabaseConnection+OWS.m index 44d11aa68..e806383a7 100644 --- a/SignalServiceKit/src/Storage/YapDatabaseConnection+OWS.m +++ b/SignalServiceKit/src/Storage/YapDatabaseConnection+OWS.m @@ -117,7 +117,6 @@ NS_ASSUME_NONNULL_BEGIN - (void)setObject:(id)object forKey:(NSString *)key inCollection:(NSString *)collection { - OWSAssert(object); OWSAssert(key.length > 0); OWSAssert(collection.length > 0);