Skip to content

Commit 166f76b

Browse files
committed
Fix NRE in GetAliasResponse
1 parent 9a4ca1e commit 166f76b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Elastic.Clients.Elasticsearch/_Shared/Api/IndexManagement/GetAliasResponse.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33
// See the LICENSE file in the project root for more information.
44

5-
using System.Collections.Generic;
6-
using System.Text.Json.Serialization;
7-
85
namespace Elastic.Clients.Elasticsearch.IndexManagement;
96

107
public partial class GetAliasResponse
@@ -17,5 +14,5 @@ public partial class GetAliasResponse
1714
/// the client considers the response to be valid.
1815
/// </para>
1916
/// </summary>
20-
public override bool IsValidResponse => base.IsValidResponse || Aliases.Count > 0;
17+
public override bool IsValidResponse => base.IsValidResponse || Aliases?.Count > 0;
2118
}

0 commit comments

Comments
 (0)