Skip to content

Commit 4dd880f

Browse files
committed
Fixes "Could not build error message- the message makes use of properties from the containing object, but the containing object was null."
1 parent 35e36c6 commit 4dd880f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Presentation/SmartStore.Web/Global.asax.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private static void InitializeFluentValidator()
184184
{
185185
string name = null;
186186

187-
if (HostingEnvironment.IsHosted)
187+
if (HostingEnvironment.IsHosted && member != null)
188188
{
189189
var attr = member.GetAttribute<SmartResourceDisplayName>(true);
190190
if (attr != null)

0 commit comments

Comments
 (0)