- final MobileLedgerProfile profile = Data.profiles.get(position);
- final MobileLedgerProfile currentProfile = Data.profile.get();
- Log.d("profiles", String.format("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.getProfile();
+ debug("profiles", String.format(Locale.ENGLISH, "pos %d: %s, current: %s", position,
+ profile.getUuid(), currentProfile.getUuid()));