Skip to content

Commit 656cdaf

Browse files
authored
Merge pull request #299 from Bipsync/issue-298-email-address-dict-exception
Fixes #298: Initialise entry to an object, not null.
2 parents 02b0e51 + 553f896 commit 656cdaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/ComplexProperties/EmailAddressDictionary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class EmailAddressDictionary extends DictionaryProperty<EmailAddressKey,
7575
* @return {boolean} true if the Dictionary contains an e-mail address associated with the specified key; otherwise, false.
7676
*/
7777
TryGetValue(key: EmailAddressKey, emailAddress: IOutParam<EmailAddress>): boolean {
78-
let entry: IOutParam<EmailAddressEntry> = null;
78+
let entry: IOutParam<EmailAddressEntry> = { outValue: null };
7979

8080
if (this.Entries.tryGetValue(key, entry)) {
8181
emailAddress.outValue = entry.outValue.EmailAddress;

0 commit comments

Comments
 (0)