Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#123 Object reference not set to instance of an object

open
nobody
None
5
2007-08-21
2007-08-21
chrisIerickson
No

This is with the release version 6.3.

2 problems found with null reference exceptions in EventEmitter.cs

1) On or around line 382:
if (checkEntry.Recurrence.Value.Contains(ruleString))

checkEntry.Recurrence is / was null (even though it was marked as recurring above)

I updated my code to read:
if (checkEntry.Recurrence != null && checkEntry.Recurrence.Value.Contains(ruleString))

2) On or around line 411:
Stream receiver = e.Response.Response.GetResponseStream() ;

e.Response is / was null. I updated my code to read:

Stream receiver = (e.Response != null ? e.Response.GetResponseStream() : null);

Discussion