Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullpointer in UpdateBadgeProperties #74

Closed
geskill opened this issue Jul 8, 2019 · 1 comment
Closed

Nullpointer in UpdateBadgeProperties #74

geskill opened this issue Jul 8, 2019 · 1 comment
Labels

Comments

@geskill
Copy link

geskill commented Jul 8, 2019

We need some if (this.Content != null) { ... } here: https://github.com/xabre/xamarin-forms-tab-badge/blob/master/Source/Plugin.Badge.Abstractions/Badge.cs#L74

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Plugin.Badge.Abstractions.Badge.UpdateBadgeProperties () [0x00000] in E:\Projects\xamarin-forms-tab-badge\Source\Plugin.Badge.Abstractions\Badge.cs:74 
  at Plugin.Badge.Abstractions.Badge.BadgePropertyChanged (Xamarin.Forms.BindableObject bindable, System.Object oldValue, System.Object newValue) [0x00000] in E:\Projects\xamarin-forms-tab-badge\Source\Plugin.Badge.Abstractions\Badge.cs:109 
  at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00120] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:445 
  at Xam
arin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:379 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x00042] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:316 
  at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:303 
  at Xamarin.Forms.Setter.Apply (Xamarin.Forms.BindableObject target, System.Boolean fromStyle) [0x000ba] in D:\a\1\s\Xamarin.Forms.Core\Setter.cs:75 
  at Xamarin.Forms.Style.ApplyCore (Xamarin.Forms.BindableObject bindable, Xamarin.Forms.Style basedOn) [0x0001e] in D:\a\1\s\Xamarin.Forms.Core\Style.cs:132 
  at Xama
@xabre xabre added the bug label Jul 17, 2019
xabre added a commit that referenced this issue Aug 3, 2019
@xabre
Copy link
Owner

xabre commented Aug 3, 2019

Fixed in 2.2.1

@xabre xabre closed this as completed Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants