4262: Account type and status getters should return optional.

This commit is contained in:
Raman Arora 2021-04-02 01:44:39 -04:00
parent 7f0234dad6
commit a065428f90

View File

@ -180,7 +180,9 @@ public class OsAccountDataPanel extends JPanel {
data.addData(Bundle.OsAccountDataPanel_basic_address(), data.addData(Bundle.OsAccountDataPanel_basic_address(),
account.getName() == null || account.getName().isEmpty() ? "" : account.getName()); account.getName() == null || account.getName().isEmpty() ? "" : account.getName());
data.addData(Bundle.OsAccountDataPanel_basic_type(), account.getOsAccountType().getName());
data.addData(Bundle.OsAccountDataPanel_basic_type(),
account.getOsAccountType().isPresent() ? account.getOsAccountType().get().getName() : "");
Optional<Long> crTime = account.getCreationTime(); Optional<Long> crTime = account.getCreationTime();
if (crTime.isPresent()) { if (crTime.isPresent()) {