From ddcd9764eafa4f555e67bdf6ba8404e46e30aedd Mon Sep 17 00:00:00 2001 From: Patrick Simpson Date: Mon, 27 Feb 2017 16:05:09 +0100 Subject: [PATCH] [KOE-17] Added null check to prevent exception in log --- .../AcaciaZPushPlugin/Features/Signatures/FeatureSignatures.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/Signatures/FeatureSignatures.cs b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/Signatures/FeatureSignatures.cs index 4d0fc38..e4e0cd0 100644 --- a/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/Signatures/FeatureSignatures.cs +++ b/src/AcaciaZPushPlugin/AcaciaZPushPlugin/Features/Signatures/FeatureSignatures.cs @@ -122,7 +122,7 @@ namespace Acacia.Features.Signatures /// The signature hash. If null, the hash will not be checked and a hard sync will be done. private void SyncSignatures(ZPushAccount account, string serverSignatureHash) { - if (!account.Capabilities.Has("signatures")) + if (account == null || !account.Capabilities.Has("signatures")) return; // Check hash if needed