mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing comparison where either side can be null
This commit is contained in:
@@ -76,7 +76,7 @@ namespace Orchard.ContentManagement.Drivers {
|
||||
return editor;
|
||||
}
|
||||
|
||||
if (editor.GetGroup() != context.GroupId) {
|
||||
if ((editor.GetGroup() ?? string.Empty) != (context.GroupId ?? string.Empty)) {
|
||||
return editor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user