Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Sep 19, 2024
1 parent c031a1b commit a2fb0fd
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 @@ -243,7 +243,11 @@ This works for currently supported range notations (=,~)
}
out.writeStringCollection(extendedPlugins);
out.writeBoolean(hasNativeController);
Settings.writeSettingsToStream(requestedActions, out);
if (requestedActions != null) {
Settings.writeSettingsToStream(requestedActions, out);
} else {
Settings.writeSettingsToStream(Settings.EMPTY, out);
}
}

/**
Expand Down

0 comments on commit a2fb0fd

Please sign in to comment.