WindowsAppCommunity / UWPCommunityApp

A UWP companion app for the UWP Community website
https://www.microsoft.com/store/apps/9PJW4588MKV0
14 stars 5 forks source link

App crashes when attempting to load Llamingo board from clipboard that does not contain text #12

Closed yoshiask closed 4 years ago

yoshiask commented 4 years ago

The following crash is produced if the clipboard is either empty or contains non-text content (such as an image).


Invalid clipboard format

DataPackage does not contain the specified format. Verify its presence using DataPackageView.Contains or DataPackageView.AvailableFormats.

   at Windows.ApplicationModel.DataTransfer.DataPackageView.GetTextAsync()
   at UWPCommunity.Views.Subviews.LlamaBingo.LoadLink_Click(Object sender, RoutedEventArgs e)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object state)
   at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()
   at Windows.ApplicationModel.Core.UnhandledError.Propagate()
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object sender, UnhandledErrorDetectedEventArgs eventArgs)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AppCenter.Utils.ApplicationLifecycleHelper.<.ctor>b__17_1(Object sender, UnhandledErrorDetectedEventArgs eventArgs)```