U4-2374 - Mono port to do: dealing with empty string

Created by Can Koluman 15 Jun 2013, 07:27:55 Updated by Sebastiaan Janssen 21 Jun 2013, 15:30:36

MONO DOES NOT LIKE THIS: if (_pt != null && _pt.ValidationRegExp != "")

BUT THIS IS FINE: if (_pt != null && !String.IsNullOrEmpty(_pt.ValidationRegExp))

src/Umbraco.Web/umbraco.presentation/umbraco/controls/GenericProperties/GenericProperty.ascx.cs

Comments

Can Koluman 15 Jun 2013, 08:06:43

No Problem with empty string, but an exception will be thrown with a null string


Sebastiaan Janssen 21 Jun 2013, 15:30:29

Fixed in changeset 76358e3e133a502692412929d99ba71292abb26a


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 6.0.7

Sprint:

Story Points:

Cycle: