Prevent null auth info request dialog
This commit is contained in:
parent
8df1d2218d
commit
b0cd5524dd
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,10 @@ class MainActivity : GenericActivity(), SnackBarActivity, NavController.OnDestin
|
||||||
|
|
||||||
private val coreListener: CoreListenerStub = object : CoreListenerStub() {
|
private val coreListener: CoreListenerStub = object : CoreListenerStub() {
|
||||||
override fun onAuthenticationRequested(core: Core, authInfo: AuthInfo, method: AuthMethod) {
|
override fun onAuthenticationRequested(core: Core, authInfo: AuthInfo, method: AuthMethod) {
|
||||||
|
if (authInfo.username == null || authInfo.domain == null || authInfo.realm == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
Log.w(
|
Log.w(
|
||||||
"[Main Activity] Authentication requested for account [${authInfo.username}@${authInfo.domain}] with realm [${authInfo.realm}] using method [$method]"
|
"[Main Activity] Authentication requested for account [${authInfo.username}@${authInfo.domain}] with realm [${authInfo.realm}] using method [$method]"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue