diff --git a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java index 9d61a8cd..afc14e10 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java +++ b/mastodon/src/main/java/org/joinmastodon/android/api/session/AccountSessionManager.java @@ -451,6 +451,8 @@ public class AccountSessionManager{ if(i!=null) return i; 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(); fake.uri=fake.title=domain; fake.description=fake.version=fake.email="";