From 9af20d05dce6dcd171d71ed3a58f96d910ad3a46 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Sun, 27 Jul 2014 13:01:53 +0200 Subject: [PATCH] fixes #28 Fix StackOverflow bug in PocketItem equality overload --- CHANGELOG.md | 4 ++++ PocketSharp/Models/PocketItem.cs | 2 +- PocketSharp/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f1335e..c25faba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 4.1.5 (2014-07-27) + +- Fix StackOverflow bug in PocketItem equality overload (fixes #28) + ### 4.1.4 (2014-07-18) - Implement WebAuthenticationBroker-view toggle diff --git a/PocketSharp/Models/PocketItem.cs b/PocketSharp/Models/PocketItem.cs index a0df39c..ea6f0ad 100644 --- a/PocketSharp/Models/PocketItem.cs +++ b/PocketSharp/Models/PocketItem.cs @@ -366,7 +366,7 @@ namespace PocketSharp.Models /// public static bool operator ==(PocketItem a, PocketItem b) { - if (a == null || b == null) + if (Object.ReferenceEquals(a, b)) { return false; } diff --git a/PocketSharp/Properties/AssemblyInfo.cs b/PocketSharp/Properties/AssemblyInfo.cs index 4acfeb0..8263094 100644 --- a/PocketSharp/Properties/AssemblyInfo.cs +++ b/PocketSharp/Properties/AssemblyInfo.cs @@ -22,5 +22,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.1.4")] -[assembly: AssemblyFileVersion("4.1.4")] \ No newline at end of file +[assembly: AssemblyVersion("4.1.5")] +[assembly: AssemblyFileVersion("4.1.5")] \ No newline at end of file