Still a good idea to throw exception in debug builds tho

This commit is contained in:
Grishka 2024-11-18 15:22:49 +03:00
parent 80cf64cc32
commit 878067368a
1 changed files with 2 additions and 0 deletions

View File

@ -451,6 +451,8 @@ public class AccountSessionManager{
if(i!=null) if(i!=null)
return i; return i;
Log.e(TAG, "Instance info for "+domain+" was not found. This should normally never happen. Returning fake instance object"); Log.e(TAG, "Instance info for "+domain+" was not found. This should normally never happen. Returning fake instance object");
if(BuildConfig.DEBUG)
throw new IllegalStateException("Instance info for "+domain+" missing");
InstanceV1 fake=new InstanceV1(); InstanceV1 fake=new InstanceV1();
fake.uri=fake.title=domain; fake.uri=fake.title=domain;
fake.description=fake.version=fake.email=""; fake.description=fake.version=fake.email="";