private @Nullable AxolotlAddress getAddressName(File sessionFile) { try { String[] parts = sessionFile.getName().split("[.]"); Recipient recipient = RecipientFactory.getRecipientForId(context, Integer.valueOf(parts[0]), true); int deviceId; if (parts.length > 1) deviceId = Integer.parseInt(parts[1]); else deviceId = TextSecureAddress.DEFAULT_DEVICE_ID; return new AxolotlAddress(recipient.getNumber(), deviceId); } catch (NumberFormatException e) { Log.w(TAG, e); return null; } }