[GH-ISSUE #185] NPE once occurred #181

Open
opened 2026-02-25 20:31:05 +03:00 by kerem · 3 comments
Owner

Originally created by @maybeec on GitHub (Jan 9, 2017).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/185

I once observed an NPE. However, it did not reoccur for a while.
I am posting this not as a bug but maybe it is a look worth if you are interested.

System.NullReferenceException: Object reference not set to an instance of an object.
   at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.QueryFolder[T](NameSpace session, GenericComObjectWrapper`1 calendarFolderWrapper, StringBuilder filterBuilder, Func`2 selector)
   at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.GetAll[T](IEnumerable`1 idsOfknownEntities, IEventSynchronizationContext context, Func`2 selector)
   at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.GetAllVersions(IEnumerable`1 idsOfknownEntities, IEventSynchronizationContext context)
   at GenSync.Synchronization.Synchronizer`7.<SynchronizeNoThrow>d__19.MoveNext()
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40757691-npe-once-occurred?utm_campaign=plugin&utm_content=tracker%2F20017320&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F20017320&utm_medium=issues&utm_source=github).
Originally created by @maybeec on GitHub (Jan 9, 2017). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/185 I once observed an NPE. However, it did not reoccur for a while. I am posting this not as a bug but maybe it is a look worth if you are interested. ``` System.NullReferenceException: Object reference not set to an instance of an object. at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.QueryFolder[T](NameSpace session, GenericComObjectWrapper`1 calendarFolderWrapper, StringBuilder filterBuilder, Func`2 selector) at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.GetAll[T](IEnumerable`1 idsOfknownEntities, IEventSynchronizationContext context, Func`2 selector) at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.GetAllVersions(IEnumerable`1 idsOfknownEntities, IEventSynchronizationContext context) at GenSync.Synchronization.Synchronizer`7.<SynchronizeNoThrow>d__19.MoveNext() ``` <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/40757691-npe-once-occurred?utm_campaign=plugin&utm_content=tracker%2F20017320&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F20017320&utm_medium=issues&utm_source=github). </bountysource-plugin>
Author
Owner

@aluxnimm commented on GitHub (Jan 9, 2017):

Thank you, could only happen if the Outlook folder can't be queried and GetTable returns null which shouldn't happen or the folder object itself couldn't be accessed.

<!-- gh-comment-id:271234050 --> @aluxnimm commented on GitHub (Jan 9, 2017): Thank you, could only happen if the Outlook folder can't be queried and GetTable returns null which shouldn't happen or the folder object itself couldn't be accessed.
Author
Owner

@maybeec commented on GitHub (Jan 9, 2017):

Ok, seemingly there is a rare case, where this can happen. So maybe you can silently abort the synchronization with a warning and try it again later? Would be better.

<!-- gh-comment-id:271234539 --> @maybeec commented on GitHub (Jan 9, 2017): Ok, seemingly there is a rare case, where this can happen. So maybe you can silently abort the synchronization with a warning and try it again later? Would be better.
Author
Owner

@aluxnimm commented on GitHub (Jan 9, 2017):

Yes, sounds reasonable.

<!-- gh-comment-id:271234854 --> @aluxnimm commented on GitHub (Jan 9, 2017): Yes, sounds reasonable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/outlookcaldavsynchronizer#181
No description provided.