Prevent null auth info request dialog

This commit is contained in:
Sylvain Berfini 2023-06-07 10:18:32 +02:00
parent 8df1d2218d
commit b0cd5524dd

View file

@ -119,6 +119,10 @@ class MainActivity : GenericActivity(), SnackBarActivity, NavController.OnDestin
private val coreListener: CoreListenerStub = object : CoreListenerStub() {
override fun onAuthenticationRequested(core: Core, authInfo: AuthInfo, method: AuthMethod) {
if (authInfo.username == null || authInfo.domain == null || authInfo.realm == null) {
return
}
Log.w(
"[Main Activity] Authentication requested for account [${authInfo.username}@${authInfo.domain}] with realm [${authInfo.realm}] using method [$method]"
)