mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-24 05:42:10 +08:00
Initializing T with a proper NullInstance.
This allows for easier testing where client code will not inject T (which would cause null reference exceptions down the line).
This commit is contained in:
@@ -6,6 +6,10 @@ using Orchard.Workflows.Services;
|
||||
|
||||
namespace Orchard.Users.Activities {
|
||||
public abstract class UserActivity : Event {
|
||||
protected UserActivity() {
|
||||
T = NullLocalizer.Instance;
|
||||
}
|
||||
|
||||
public Localizer T { get; set; }
|
||||
|
||||
public override bool CanStartWorkflow {
|
||||
|
||||
Reference in New Issue
Block a user