summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2017-06-23 18:29:38 -0600
committerGitHub <noreply@github.com>2017-06-23 18:29:38 -0600
commiteb2a2177b3761efbc9b6563d4621ab4a19300837 (patch)
tree7f6fc3bba203bdcf33059a283cb8d9e37051fd2d /Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs
parent4847e4b26a0b7808b6af47854946ee10fc46adc2 (diff)
downloadxamarin-forms-eb2a2177b3761efbc9b6563d4621ab4a19300837.tar.gz
xamarin-forms-eb2a2177b3761efbc9b6563d4621ab4a19300837.tar.bz2
xamarin-forms-eb2a2177b3761efbc9b6563d4621ab4a19300837.zip
Fix NRE when background color of button set in FormsApplicationActivity (#1010)
Diffstat (limited to 'Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs b/Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs
index e7e9a3bf..9f336a24 100644
--- a/Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs
+++ b/Xamarin.Forms.Platform.Android/AppCompat/ButtonRenderer.cs
@@ -140,7 +140,7 @@ namespace Xamarin.Forms.Platform.Android.AppCompat
if (Element == null || Control == null)
return;
- _backgroundTracker.UpdateBackgroundColor();
+ _backgroundTracker?.UpdateBackgroundColor();
}
void UpdateAll()