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 committed Mar 15, 2024
1 parent af1e3c1 commit f6e198f
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 f6e198f

Please sign in to comment.