This is a migrated thread and some comments may be shown as answers.

NullPointerException when dragging thumb outside window

4 Answers 78 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Ola
Top achievements
Rank 1
Ola asked on 20 Feb 2015, 03:41 PM
Hi,

When I am dragging the SelectionEnd thumb on my RadTimeBar outside my dialog window I get a NullPointerException.

Maybe I get the exception because I move the mouse outside the window as I move outside the TimeBar.

Do you know of a workaround?

/Ola

Here is the callstack:

   vid Telerik.Windows.Controls.TimeBar.SelectionThumb.get_IsDragging()
   vid Telerik.Windows.Controls.TimeBar.SelectionThumb.OnMouseLeaveRight()
   vid Telerik.Windows.Controls.TimeBar.SelectionThumb.OnMouseMove(Object sender, MouseEventArgs e)
   vid System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   vid System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   vid System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   vid System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   vid System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   vid System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   vid System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   vid System.Windows.Input.InputManager.ProcessStagingArea()
   vid System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   vid System.Windows.Input.MouseDevice.Synchronize()
   vid System.Windows.Input.MouseDevice.OnHitTestInvalidatedAsync(Object sender, EventArgs e)
   vid System.Windows.Input.InputManager.HitTestInvalidatedAsyncCallback(Object arg)
   vid System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   vid MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   vid System.Windows.Threading.DispatcherOperation.InvokeImpl()
   vid System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   vid System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   vid System.Windows.Threading.DispatcherOperation.Invoke()

4 Answers, 1 is accepted

Sort by
0
Ola
Top achievements
Rank 1
answered on 20 Feb 2015, 03:43 PM
Sorry, I get the error when I move outside the RadTimeBar. I dont have to move outside the window.
0
Petar Marchev
Telerik team
answered on 24 Feb 2015, 08:03 AM
Hi Ola,

We have not had any reports about such a behavior so far. I created a small project and I was unable to get an exception. I am attaching it for your reference, I will ask that you update the project so that the exception occurs. Please explain what are the steps we need to make in order to get this faulty behavior. Can you also share with us which version you are using? Thank you.

Regards,
Petar Marchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Ola
Top achievements
Rank 1
answered on 24 Feb 2015, 08:57 AM
Sorry to bother you. I had made some local modifications to the windows8 datavisualization resources that caused a crash after updating Telerik UI. It was nobodys fault but mine. Thank you for excellent support.

/Ola
0
Petar Marchev
Telerik team
answered on 24 Feb 2015, 09:02 AM
Hi Ola,

Thank you for the information. We are happy that you have worked this out.

Regards,
Petar Marchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TimeBar
Asked by
Ola
Top achievements
Rank 1
Answers by
Ola
Top achievements
Rank 1
Petar Marchev
Telerik team
Share this question
or