summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2017-06-26 19:06:39 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-06-26 19:06:39 (GMT)
commit78546aed89c87ace267d89c054b05bca012bfd64 (patch)
tree6ef55fdd5598a218bd5d708aa5ec0d3b2a60d548 /Xamarin.Forms.Core
parent3b11401558678a27d6c6f5103e58252de04761f0 (diff)
downloadxamarin-forms-78546aed89c87ace267d89c054b05bca012bfd64.zip
xamarin-forms-78546aed89c87ace267d89c054b05bca012bfd64.tar.gz
xamarin-forms-78546aed89c87ace267d89c054b05bca012bfd64.tar.bz2
Fix DefinitionCollection index check order (#1017)
Diffstat (limited to 'Xamarin.Forms.Core')
-rw-r--r--Xamarin.Forms.Core/DefinitionCollection.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/DefinitionCollection.cs b/Xamarin.Forms.Core/DefinitionCollection.cs
index 6310a42..7821905 100644
--- a/Xamarin.Forms.Core/DefinitionCollection.cs
+++ b/Xamarin.Forms.Core/DefinitionCollection.cs
@@ -83,7 +83,7 @@ namespace Xamarin.Forms
get { return _internalList[index]; }
set
{
- if(index < _internalList.Count && _internalList[index] != null && index >= 0)
+ if(index < _internalList.Count && index >= 0 && _internalList[index] != null)
_internalList[index].SizeChanged -= OnItemSizeChanged;
_internalList[index] = value;