U4-514 - MediaType.GetByAlias Returns System.ArgumentException instead of Null When MediaType does not exist

Created by Sebastiaan Janssen 19 Aug 2012, 14:53:42 Updated by Sebastiaan Janssen 30 Aug 2012, 10:40:08

Subtask of: U4-136

Unlike DocumentTypes, MediaTypes return a System.ArgumentException instead of null when attempting to get a non-existent MediaType in code.

''Originally created on CodePlex by [ProNotion|http://www.codeplex.com/site/users/view/ProNotion]'' on 1/5/2012 10:10:48 AM [Codeplex ID: 30661 - Codeplex Votes: 1]


Sebastiaan Janssen 30 Aug 2012, 10:39:42

Fixed in changeset [111375bc06cb|http://umbraco.codeplex.com/SourceControl/changeset/111375bc06cb]

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 4.8.0, 4.9.0

Due in version: 4.9.0


Story Points: