Adding support for exception instances in Services.NzbDrone

This commit is contained in:
kay.one 2012-02-29 18:36:39 -08:00
commit 98faca17ee
14 changed files with 342 additions and 11 deletions

View file

@ -6,15 +6,15 @@ namespace NzbDrone.Common
public static class StringExtention
{
public static object NullCheck(this object target)
public static object NullSafe(this object target)
{
if (target != null) return target;
return "[NULL]";
}
public static string NullCheck(this string target)
public static string NullSafe(this string target)
{
return ((object)target).NullCheck().ToString();
return ((object)target).NullSafe().ToString();
}
}
}