October 31, 2020, 01:04:45 AM

See more Support incidents in our old archived forum.

Author Topic: NullReferenceException in TaskListControl  (Read 2671 times)

jan.reker

  • Customers
  • Newbie
  • *
  • Posts: 34
NullReferenceException in TaskListControl
« on: August 31, 2015, 09:01:27 AM »
Hello again,

occasionally, when I try to refresh/reload the data displayed in the gantt chart, I get a NullRefernceException.

I debugged the code and narrowed it down to the class "TasksListControl" and its method "TasksListControl_Loaded"

In that case the line "var itemsPresenter = Extensions.GetChild<ItemsPresenter>(this, false);" results in "itemsPresenter" being "null", which will later produce the exception.

It would be great, if you could fix this issue :)

Thanks,
Jan Reker

Rajagopal

  • RQ Members
  • Full Member
  • *
  • Posts: 149
Re: NullReferenceException in TaskListControl
« Reply #1 on: August 31, 2015, 03:09:27 PM »
Jan,

Yes, we can provide an update with a fix for this soon. Before that can you tell us what exactly you mean by "refresh/reload"? Is it resetting the data or is the gantt getting refreshed by being on a Tab, for example?


Thanks,
Raja.

jan.reker

  • Customers
  • Newbie
  • *
  • Posts: 34
Re: NullReferenceException in TaskListControl
« Reply #2 on: September 02, 2015, 06:22:46 AM »
Raja,

by "refresh" I meant the when I alter the bound ItemSource (with quite a lot of objects) by clearing it and filling it with new data. Most of the time this works flawlessly, but sometimes it results in the mentioned exception.

ForumAdmin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 89
Re: NullReferenceException in TaskListControl
« Reply #3 on: September 02, 2015, 07:16:09 PM »
Jan,

We just sent you an updated assembly with the fix. Please verify.

Thanks
RQ Support