mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Improve ServiceId parsing functions.
This commit is contained in:
committed by
Alex Hart
parent
784f94ecdb
commit
6d2d3ae528
@@ -47,7 +47,7 @@ public class PniMigrationJob extends MigrationJob {
|
||||
return;
|
||||
}
|
||||
|
||||
PNI pni = PNI.parseUnPrefixedOrNull(ApplicationDependencies.getSignalServiceAccountManager().getWhoAmI().getPni());
|
||||
PNI pni = PNI.parseOrNull(ApplicationDependencies.getSignalServiceAccountManager().getWhoAmI().getPni());
|
||||
|
||||
if (pni == null) {
|
||||
throw new IOException("Invalid PNI!");
|
||||
|
||||
Reference in New Issue
Block a user