Bug 36435 - [UWP] Back navigation while a Editor has focus crashes the app
Summary: [UWP] Back navigation while a Editor has focus crashes the app
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Rui Marinho
URL:
Depends on:
Blocks:
 
Reported: 2015-12-01 17:26 UTC by Michael Rumpler
Modified: 2015-12-01 22:06 UTC (History)
4 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:


Attachments
repro project (129.80 KB, application/x-zip-compressed)
2015-12-01 17:26 UTC, Michael Rumpler
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Michael Rumpler 2015-12-01 17:26:22 UTC
Created attachment 14062 [details]
repro project

An exception is thrown, when an Editor has focus and the back button is clicked on UWP.

A repro project is attached. Run the UWP project, click the Editor Button to open the subpage, focus the Editor and click the back arrow. The app crashes with the following exception:

System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.Forms.Platform.UWP.EditorRenderer.OnLostFocus(Object sender, RoutedEventArgs e)

If the Editor loses focus while the page is open, then it works.
If you run the WinRT project (or any other platform which is not included in the sample), then it works fine.
Comment 1 Rui Marinho 2015-12-01 22:06:28 UTC
Should be fixed in 2.0.1-pre1