Fixing comparison where either side can be null

This commit is contained in:
Nicholas Mayne
2014-07-15 21:13:22 +01:00
parent 7cb97fdd7c
commit 6847f6d7eb

View File

@@ -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;
}
}