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

Additional Null-Check in TransformToDeviceDPI #462

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbuerger
Copy link
Contributor

Avoid the following NullException:

TransformExtensions TransformToDeviceDPI: First Chance Exception: System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

bei AvalonDock.Controls.TransformExtensions.TransformToDeviceDPI(Visual visual, Point pt)
bei AvalonDock.DockingManager.AvalonDock.Controls.IOverlayWindowHost.HitTestScreen(Point dragPoint)
bei AvalonDock.Controls.DragService.<>c__DisplayClass9_0.b__0(IOverlayWindowHost oh)
bei System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
bei AvalonDock.Controls.DragService.UpdateMouseLocation(Point dragPosition)
bei AvalonDock.Controls.LayoutFloatingWindowControl.UpdateDragPosition()
bei AvalonDock.Controls.LayoutFloatingWindowControl.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei AvalonDock.Controls.LayoutAnchorableFloatingWindowControl.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant