Browse Source

Fix null reference

master
Savorboard 5 years ago
parent
commit
a02ccc7f98
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/DotNetCore.CAP/CAP.Options.cs

+ 2
- 1
src/DotNetCore.CAP/CAP.Options.cs View File

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


Loading…
Cancel
Save