I am Developing Universal windows app,
I want to Send user Directly to Companies Screen if user Re-Launching the app, i am using following block of code but it gives me Null reference exception
 Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
        Windows.Storage.ApplicationDataCompositeValue composite =(Windows.Storage.ApplicationDataCompositeValue)localSettings.Values["exampleCompositeSetting"];
        if (composite == null)
        {
            // No data
        }
        else
        {
            string user = composite["UserId"].ToString();
            Frame.Navigate(typeof(Companies));              
        }
Any one Help me on this Please.
Thanks, Srinivas.
 
    