-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Exception on Dispose #10
Comments
how do you cancel button? can you show me your code please? |
I'm not sure I understand the question. I declare the button in xaml. I'm using FreshMvvm framework for the app so when I want to navigate back to the previous page I use:
I've just checked FreshMvvm source and
And |
https://bugzilla.xamarin.com/show_bug.cgi?id=21457 is an old reference but may be relevant? |
I'm getting the same issue. I have a page that has multiple CircleButtons, and when I navigate back to the home page I get a null reference exception. I use Navigation.PopAsync() to go back to the home page. Here is part of the stack trace: Object reference not set to an instance of an object (System.NullReferenceException) As mentioned earlier, it seems like the exception is thrown as the button is being disposed. |
Check latest version (1.2.52). I tested this version on an IPhone with iOS 11, Samsung Galaxy S8 with Android 7.1 and in my computer with Windows 10, it's work fine. Please tell me if you have a issue again. |
I have a button defined in XAML as:
<buttoncircle:CircleButton Grid.Row="8" Grid.Column="1" x:Name="infoButton" Icon="ic_info" TextColor="White" FontSize="24" HeightRequest="24" WidthRequest="24" BorderThickness="1" BackgroundColor="#0076fa" VerticalOptions="Center" HorizontalOptions="Center" Command="{Binding InfoCommand}" />
It displays perfectly and is used to display some information text on a new page. But if I cancel from the page even without tapping the button I get a null reference exception that appears to be an issue triggered by trying to Dispose the button.
Is there something I'm missing here?
The text was updated successfully, but these errors were encountered: