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

ScheduleViewBase NullRef Exception

3 Answers 38 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 12 Nov 2012, 03:58 AM
Has anyone encountered the exception below? Can you tell me what could cause such a problem in the ScheduleViewBase?

I know that the cause is likely somewhere in our code, and I'm hoping someone can point me in the right direction. We encounter this exception when attempting to resize a recurring exception Appointment by grabbing the "top" border and sliding it up--making the start time earlier. As soon as the mouse is moved and a new start time indicated in the drag, the exception is thrown. Resizing regular, non-recurring appointments, and occurrence masters ("series") are fine. It's only the recurrence exception that has trouble.

Message: Unhandled Error in Silverlight Application 
Code: 4004    
Category: ManagedRuntimeError       
Message: System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Windows.Controls.ScheduleViewBase.<>c__DisplayClassbc.<GetDecorationBlocksForSlot>b__b8(IGroupItemInfo info)
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   at Telerik.Windows.Controls.CollectionExtensions.ForEach[T](IEnumerable`1 source, Action`1 action)
   at Telerik.Windows.Controls.HighlightPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)


Any suggestions for troubleshooting appreciated--

Regards,
Simon

3 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 15 Nov 2012, 08:40 AM
Hello Simon,

We tried to reproduce the issue concerning resizing the recurring exception appointment but with no success.

Could you send us some code snippets of your project or open an support ticket and send us a runnable project that recreates the issue?

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Zohreh
Top achievements
Rank 1
answered on 07 Dec 2012, 01:21 AM
Hi
I'm getting the same null ref exception when trying to resize a very simple appointment with no recurrent rule.
Is it solved?
Is there any hint why I'm getting this issue?

Cheers
0
Vladi
Telerik team
answered on 11 Dec 2012, 12:27 PM
Hi Zohreh,

We are still not able to reproduce the NullReferenceException when resizing appointments in the control.

Could you share with us some code snippet of your project or a runnable project that recreates the issue so we can observe it on our side?

Regards,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ScheduleView
Asked by
Simon
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Zohreh
Top achievements
Rank 1
Share this question
or