Skip to content

Commit a2fb0fd

Browse files
committed
Add null check
Signed-off-by: Craig Perkins <cwperx@amazon.com>
1 parent c031a1b commit a2fb0fd

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
@@ -243,7 +243,11 @@ This works for currently supported range notations (=,~)
243243
}
244244
out.writeStringCollection(extendedPlugins);
245245
out.writeBoolean(hasNativeController);
246-
Settings.writeSettingsToStream(requestedActions, out);
246+
if (requestedActions != null) {
247+
Settings.writeSettingsToStream(requestedActions, out);
248+
} else {
249+
Settings.writeSettingsToStream(Settings.EMPTY, out);
250+
}
247251
}
248252

249253
/**

0 commit comments

Comments
 (0)