Skip to content

Commit

Permalink
Merge pull request #131 from Microsoft/users/demarcey/memberNullRef
Browse files Browse the repository at this point in the history
Prevent null ref with event.member.
  • Loading branch information
dmarcey authored Feb 13, 2017
2 parents f4dde7b + 118715d commit 7313a4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Calendar/EventSources/VSOCapacityEventSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export class VSOCapacityEventSource implements Calendar_Contracts.IEventSource {
var regroupedEvent: Calendar_Contracts.CalendarEvent = {
startDate: date,
endDate: date,
member: event.member,
title: "",
id: this.id + "." + date,
category: <Calendar_Contracts.IEventCategory> {
Expand Down Expand Up @@ -177,6 +178,7 @@ export class VSOCapacityEventSource implements Calendar_Contracts.IEventSource {
var regroupedEvent: Calendar_Contracts.CalendarEvent = {
startDate: date,
endDate: date,
member: event.member,
title: "",
id: this.id + "." + date,
category: <Calendar_Contracts.IEventCategory> {
Expand Down

0 comments on commit 7313a4d

Please sign in to comment.