Skip to content

Commit

Permalink
Issue: Intermittent UI exception while opening the Import Virtual Mac…
Browse files Browse the repository at this point in the history
…hine(s) pop-up

Signed-off-by: ShubhaOracle <Shubha.kulkarni@oracle.com>
  • Loading branch information
shubhaOracle authored and sandrobonazzola committed Oct 4, 2024
1 parent 1e10b6e commit fc1edf8
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,13 @@ protected Double getSpeed(VmNetworkInterface object) {
AbstractTextColumn<VmNetworkInterface> dropsColumn = new AbstractSumUpColumn<VmNetworkInterface>() {
@Override
protected Double[] getRawValue(VmNetworkInterface object) {
Double receiveDrops = object != null ? object.getStatistics().getReceiveDrops().doubleValue() : null;
Double transmitDrops = object != null ? object.getStatistics().getTransmitDrops().doubleValue() : null;
Double receiveDrops = (object != null && object.getStatistics() != null
&& object.getStatistics().getReceiveDrops() != null)
? object.getStatistics().getReceiveDrops().doubleValue() : 0.0;
Double transmitDrops = (object != null && object.getStatistics() != null
&& object.getStatistics().getTransmitDrops() != null)
? object.getStatistics().getTransmitDrops().doubleValue() : 0.0;

return new Double[] { receiveDrops, transmitDrops };
}
};
Expand Down

0 comments on commit fc1edf8

Please sign in to comment.