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

Null check in ClusterAdditionalStatusColumn #242

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

ljelinkova
Copy link
Contributor

When rendering the ClusterAdditionalStatusColumn, the cluster.getHostNamesOutOfSync() might be null if the
async backend query failed. As a result, we get the NP exception because we check only if the string is empty, not if it is null. This patch adds a null check to ClusterAdditionalStatusColumn::getEntityValue.

@ljelinkova ljelinkova requested review from tinez and ahadas April 7, 2022 12:38
@ljelinkova ljelinkova requested a review from sgratch as a code owner April 7, 2022 12:38
When rendering the ClusterAdditionalStatusColumn, the
cluster.getHostNamesOutOfSync() might be null if the
async backend query failed. As a result, we get the NP exception
because we check only if the string is empty, not if it is null.
This patch adds a null check to ClusterAdditionalStatusColumn::getEntityValue.
@ljelinkova
Copy link
Contributor Author

/ost

@ahadas ahadas changed the title webadmin: null check in ClusterAdditionalStatusColumn Null check in ClusterAdditionalStatusColumn Apr 11, 2022
@ahadas ahadas merged commit a2dd524 into oVirt:master Apr 11, 2022
@ljelinkova ljelinkova deleted the fix-cluster-column branch April 28, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants