U4-2290 - Notifications do not handle fields that have null values.

Created by Peter Gregory 29 May 2013, 05:29:39 Updated by Sebastiaan Janssen 29 May 2013, 05:45:57

Notifications fail if there is a property on the document that has a null value. Eg if you have a custom property or something else that does not evaluate to a string if not set, notifications fail.

The following line of code fails when p.Value evaluates to null. Notification.cs Line 87 & 88 (v4.11.8)

87. string oldText = oldProperty.Value.ToString(); 88. string newText = p.Value.ToString(); should be changed to 87. string oldText = oldProperty.Value != null? oldProperty.Value.ToString():; 88. string newText = p.Value != null? p.Value.ToString():;

Comments

Peter Gregory 29 May 2013, 05:38:58

There are a couple places in the same code where the null value causes problems... Anytime the value p.Value.ToString() is called.


Sebastiaan Janssen 29 May 2013, 05:45:36

Fixed in changeset 543f11d5ef3f


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted: Inline code

Affected versions: 4.11.8

Due in version: 4.11.9

Sprint:

Story Points:

Cycle: