Commit a02ccc7f authored by Savorboard's avatar Savorboard

Fix null reference

parent 11f6f5d2
......@@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.Reflection;
using DotNetCore.CAP.Models;
// ReSharper disable InconsistentNaming
namespace DotNetCore.CAP
{
......@@ -41,7 +42,7 @@ namespace DotNetCore.CAP
FailedRetryCount = DefaultFailedRetryCount;
Extensions = new List<ICapOptionsExtension>();
Version = DefaultVersion;
DefaultGroup = "cap.queue." + Assembly.GetEntryAssembly().GetName().Name.ToLower();
DefaultGroup = "cap.queue." + Assembly.GetEntryAssembly()?.GetName().Name.ToLower();
}
internal IList<ICapOptionsExtension> Extensions { get; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment