2
Vote

Crash After Reading Google Calendar Entries

description

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at OutlookGoogleSync.MainForm.signature(Event ev)
at OutlookGoogleSync.MainForm.SyncNow_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5477 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

OutlookGoogleSync
Assembly Version: 1.0.4867.37164
Win32 Version: 1.0.4867.37164

CodeBase: file:///C:/Users/Daniel/AppData/Local/OutlookGoogleSync/OutlookGoogleSync.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

Google.Apis.Calendar.v3
Assembly Version: 1.2.4573.23226
Win32 Version: 1.2.4573.23226

CodeBase: file:///C:/Users/Daniel/AppData/Local/OutlookGoogleSync/Google.Apis.Calendar.v3.DLL

Google.Apis
Assembly Version: 1.2.4573.23246
Win32 Version: 1.2.4573.23246

CodeBase: file:///C:/Users/Daniel/AppData/Local/OutlookGoogleSync/Google.Apis.DLL

eiaqka_b
Assembly Version: 1.0.4867.37164
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

Google.Apis.Authentication.OAuth2
Assembly Version: 1.2.4573.23243
Win32 Version: 1.2.4573.23243

CodeBase: file:///C:/Users/Daniel/AppData/Local/OutlookGoogleSync/Google.Apis.Authentication.OAuth2.DLL

DotNetOpenAuth
Assembly Version: 4.0.0.11165
Win32 Version: 4.0.0.11165

CodeBase: file:///C:/Users/Daniel/AppData/Local/OutlookGoogleSync/DotNetOpenAuth.DLL

System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

System.Runtime.Serialization
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

SMDiagnostics
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/SMDiagnostics/3.0.0.0__b77a5c561934e089/SMDiagnostics.dll

System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll

log4net
Assembly Version: 1.2.10.0
Win32 Version: 1.2.10.0

CodeBase: file:///C:/Users/Daniel/AppData/Local/OutlookGoogleSync/log4net.DLL

Newtonsoft.Json.Net35
Assembly Version: 4.0.2.0
Win32 Version: 4.0.2.13801

CodeBase: file:///C:/Users/Daniel/AppData/Local/OutlookGoogleSync/Newtonsoft.Json.Net35.DLL

System.ServiceModel.Web
Assembly Version: 3.5.0.0
Win32 Version: 3.5.594.5458

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll

System.ServiceModel
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll

System.ComponentModel.DataAnnotations
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

System.Xml.Linq
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll

Microsoft.Office.Interop.Outlook
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4569.1506

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Outlook/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.dll

CustomMarshalers
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll

comments

thjorth wrote Jul 14, 2014 at 9:20 AM

This issue occurs when there's a cancelled event in Outlook that has no start or end date.
The fix is in MainForm.cs->signature(Event ev) method, you have to add this check:
if(ev.Start!=null)
{
//do all the stuff that's in the method now
} else {
return("");
}

akankshagaur wrote May 27, 2015 at 7:22 PM

Hi,

You can try Calendar Sync + (https://calendarsyncplus.codeplex.com/) it is a Outlook, Google calendar sync utility with loads of other features.
It is a free utility supports bidirectional too.

-Akanksha