[GH-ISSUE #174] NPE after upgrade to 2.8.0 #1072

Closed
opened 2026-03-14 00:08:56 +03:00 by kerem · 7 comments
Owner

Originally created by @maybeec on GitHub (Oct 18, 2016).
Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/174

After upgrading to 2.8.0, I got several NullReferenceExceptions on Calendar sync of the following schema:

System.NullReferenceException: Object reference not set to an instance of an object.
   at CalDavSynchronizer.Implementation.Events.EventEntityMapper.Map2To1(IEvent source, IReadOnlyCollection`1 recurrenceExceptionsOrNull, AppointmentItemWrapper targetWrapper, Boolean isRecurrenceException, IEntityMappingLogger logger)
   at CalDavSynchronizer.Implementation.Events.EventEntityMapper.Map2To1(IICalendar sourceCalendar, AppointmentItemWrapper target, IEntityMappingLogger logger)
   at GenSync.Synchronization.States.RestoreInA`6.<UpdateEntity>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GenSync.Synchronization.States.RestoreInA`6.JobWrapper.<UpdateEntity>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.<TryUpdate>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.<PerformOperations>d__2.MoveNext()

Configuration:

  • Windows 7 64bit
  • Outlook 2013
  • Nextcloud 9.0.53
Originally created by @maybeec on GitHub (Oct 18, 2016). Original GitHub issue: https://github.com/aluxnimm/outlookcaldavsynchronizer/issues/174 After upgrading to 2.8.0, I got several NullReferenceExceptions on Calendar sync of the following schema: ``` System.NullReferenceException: Object reference not set to an instance of an object. at CalDavSynchronizer.Implementation.Events.EventEntityMapper.Map2To1(IEvent source, IReadOnlyCollection`1 recurrenceExceptionsOrNull, AppointmentItemWrapper targetWrapper, Boolean isRecurrenceException, IEntityMappingLogger logger) at CalDavSynchronizer.Implementation.Events.EventEntityMapper.Map2To1(IICalendar sourceCalendar, AppointmentItemWrapper target, IEntityMappingLogger logger) at GenSync.Synchronization.States.RestoreInA`6.<UpdateEntity>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at GenSync.Synchronization.States.RestoreInA`6.JobWrapper.<UpdateEntity>d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at CalDavSynchronizer.Implementation.Events.OutlookEventRepository.<TryUpdate>d__24.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at GenSync.EntityRepositories.BatchEntityRepositoryAdapter`4.<PerformOperations>d__2.MoveNext() ``` Configuration: - Windows 7 64bit - Outlook 2013 - Nextcloud 9.0.53
kerem closed this issue 2026-03-14 00:09:02 +03:00
Author
Owner

@aluxnimm commented on GitHub (Oct 18, 2016):

Can you check if it makes any difference when you open and save the sync profile in the options dialog?

<!-- gh-comment-id:254424895 --> @aluxnimm commented on GitHub (Oct 18, 2016): Can you check if it makes any difference when you open and save the sync profile in the options dialog?
Author
Owner

@maybeec commented on GitHub (Oct 18, 2016):

Basically, after doing that and waiting some synchronizations, the issues seems to be gone.
However, I am a little bit afraid as I configured a calendar with Replicate Outlook -> Server and got the following three synchronizations:

capture

capture

capture

capture

what is happening here?

<!-- gh-comment-id:254436200 --> @maybeec commented on GitHub (Oct 18, 2016): Basically, after doing that and waiting some synchronizations, the issues seems to be gone. However, I am a little bit afraid as I configured a calendar with Replicate Outlook -> Server and got the following three synchronizations: ![capture](https://cloud.githubusercontent.com/assets/1427255/19469120/30ef053e-951a-11e6-8852-dde03d15bc5b.PNG) ![capture](https://cloud.githubusercontent.com/assets/1427255/19469135/3f635f66-951a-11e6-9dc6-37c47852fe26.PNG) ![capture](https://cloud.githubusercontent.com/assets/1427255/19469141/4ad56088-951a-11e6-8afd-45781016e9a8.PNG) ![capture](https://cloud.githubusercontent.com/assets/1427255/19469156/56dd0c50-951a-11e6-82ea-5100e752a637.PNG) what is happening here?
Author
Owner

@aluxnimm commented on GitHub (Oct 18, 2016):

Nullreference Exception when options are not saved fixed in 2.8.1

<!-- gh-comment-id:254437834 --> @aluxnimm commented on GitHub (Oct 18, 2016): Nullreference Exception when options are not saved fixed in 2.8.1
Author
Owner

@maybeec commented on GitHub (Oct 18, 2016):

Thanks. But can you explain, why my outlook data got updated regardless of the sync profile replicate?
As stated in the log above.

<!-- gh-comment-id:254437968 --> @maybeec commented on GitHub (Oct 18, 2016): Thanks. But can you explain, why my outlook data got updated regardless of the sync profile replicate? As stated in the log above.
Author
Owner

@aluxnimm commented on GitHub (Oct 18, 2016):

Nope, nothing got updated in Outlook. This info just shows the detected state before syncing (the delta). So we detected, that 3 items in Outlook have been changed since the last sync and nothing was changed on the server side since last sync.

<!-- gh-comment-id:254438401 --> @aluxnimm commented on GitHub (Oct 18, 2016): Nope, nothing got updated in Outlook. This info just shows the detected state before syncing (the delta). So we detected, that 3 items in Outlook have been changed since the last sync and nothing was changed on the server side since last sync.
Author
Owner

@maybeec commented on GitHub (Oct 18, 2016):

👍 thanks. Thus, I miss interpreted the information.
Best support ever!

<!-- gh-comment-id:254438611 --> @maybeec commented on GitHub (Oct 18, 2016): :+1: thanks. Thus, I miss interpreted the information. Best support ever!
Author
Owner

@aluxnimm commented on GitHub (Oct 18, 2016):

You are welcome :)

<!-- gh-comment-id:254439334 --> @aluxnimm commented on GitHub (Oct 18, 2016): You are welcome :)
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#1072
No description provided.