Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made diagnostics rendering more robust #17502

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -214,6 +214,12 @@ private void writeKeyValueHead(String key) {
}

public void init(PrintWriter printWriter) {
// Reset the sectionLevel. A proper rendering of a plugin should always
// return this value to -1; but in case of an exception while rendering,
// the section level isn't reset and subsequent renderings of plugins
// will run into an IndexOutOfBoundsException.
// https://github.com/hazelcast/hazelcast/issues/14973
sectionLevel = -1;
this.printWriter = printWriter;
}

Expand Down