Skip to content

Commit

Permalink
Handle case where requestedActions is null
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Sep 19, 2024
1 parent 4cdd593 commit 394c47a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/main/java/org/opensearch/plugins/PluginInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,11 @@ This works for currently supported range notations (=,~)
out.writeStringCollection(extendedPlugins);
out.writeBoolean(hasNativeController);
if (out.getVersion().onOrAfter(Version.CURRENT)) {
Settings.writeSettingsToStream(requestedActions, out);
if (requestedActions != null) {
Settings.writeSettingsToStream(requestedActions, out);
} else {
Settings.writeSettingsToStream(Settings.EMPTY, out);
}
}
}

Expand Down

0 comments on commit 394c47a

Please sign in to comment.