- final MobileLedgerProfile profile = Data.profiles.get(position);
- final MobileLedgerProfile currentProfile = Data.profile.get();
- debug("profiles", String.format(Locale.ENGLISH,"pos %d: %s, current: %s", position, profile.getUuid(),
- (currentProfile == null) ? "<NULL>" : currentProfile.getUuid()));
+ final ArrayList<MobileLedgerProfile> profiles = Data.profiles.getValue();
+ if (profiles == null) throw new AssertionError();
+ final MobileLedgerProfile profile = profiles.get(position);
+ final MobileLedgerProfile currentProfile = Data.profile.getValue();
+ debug("profiles", String.format(Locale.ENGLISH, "pos %d: %s, current: %s", position,
+ profile.getUuid(), (currentProfile == null) ? "<NULL>" : currentProfile.getUuid()));