Pārlūkot izejas kodu

Fix null reference

master
Savorboard pirms 5 gadiem
vecāks
revīzija
a02ccc7f98
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      src/DotNetCore.CAP/CAP.Options.cs

+ 2
- 1
src/DotNetCore.CAP/CAP.Options.cs Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt