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

Fix NRE when clipboard is empty #868

Merged
merged 1 commit into from Nov 22, 2018

Conversation

Projects
None yet
3 participants
@lontivero
Copy link
Contributor

commented Nov 20, 2018

Fixes a NRE

Stack trace:
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at WalletWasabi.Gui.Behaviors.PasteAddressOnClickBehavior.IsThereABitcoinAddressOnTheClipboardAsync() in /home/lontivero/GitHub/WalletWasabi/WalletWasabi.Gui/Behaviors/PasteAddressOnClickBehavior.cs:line 68
   at WalletWasabi.Gui.Behaviors.PasteAddressOnClickBehavior.<OnAttached>b__9_1(PointerEventArgs pointerEnter) in /home/lontivero/GitHub/WalletWasabi/WalletWasabi.Gui/Behaviors/PasteAddressOnClickBehavior.cs:line 127
   at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in D:\a\1\s\src\Avalonia.Base\Threading\JobRunner.cs:line 40
   at Avalonia.Gtk3.Gtk3Platform.<>c__DisplayClass29_0.<Signal>b__0() in D:\a\1\s\src\Gtk\Avalonia.Gtk3\Gtk3Platform.cs:line 136
   at Avalonia.Gtk3.Interop.GlibTimeout.Handler(IntPtr data) in D:\a\1\s\src\Gtk\Avalonia.Gtk3\Interop\GlibTimeout.cs:line 11
   at Avalonia.Gtk3.Gtk3Platform.RunLoop(CancellationToken cancellationToken) in D:\a\1\s\src\Gtk\Avalonia.Gtk3\Gtk3Platform.cs:line 107
   at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in D:\a\1\s\src\Avalonia.Base\Threading\Dispatcher.cs:line 65
   at Avalonia.Application.Run(Window mainWindow) in D:\a\1\s\src\Avalonia.Controls\Application.cs:line 237
   at AvalonStudio.Shell.Shell.StartShellApp[TAppBuilder,TMainWindow](TAppBuilder builder, String appName, IDockFactory layoutFactory, Func`1 dataContextProvider) in /home/lontivero/GitHub/WalletWasabi/WalletWasabi.Dependencies/AvalonStudio.Shell/src/AvalonStudio.Shell/Shell.cs:line 14
   at WalletWasabi.Gui.Program.Main(String[] args) in /home/lontivero/GitHub/WalletWasabi/WalletWasabi.Gui/Program.cs:line 26

@nopara73 nopara73 requested a review from molnard Nov 21, 2018

@nopara73 nopara73 merged commit 7ed1af0 into zkSNACKs:master Nov 22, 2018

3 checks passed

CodeFactor No issues found.
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.