Skip to content

Commit 394c47a

Browse files
committed
Handle case where requestedActions is null
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent 4cdd593 commit 394c47a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/src/main/java/org/opensearch/plugins/PluginInfo.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,11 @@ This works for currently supported range notations (=,~)
249249
out.writeStringCollection(extendedPlugins);
250250
out.writeBoolean(hasNativeController);
251251
if (out.getVersion().onOrAfter(Version.CURRENT)) {
252-
Settings.writeSettingsToStream(requestedActions, out);
252+
if (requestedActions != null) {
253+
Settings.writeSettingsToStream(requestedActions, out);
254+
} else {
255+
Settings.writeSettingsToStream(Settings.EMPTY, out);
256+
}
253257
}
254258
}
255259

0 commit comments

Comments
 (0)