Skip to content

When adding account, empty user/password allowed, sometimes crash on edit

Steps

  1. Go to account chooser screen
  2. Add new account
  3. Put anything in for Host, e.g. example.com
  4. Go to next page, skip filling out fields, go to next
    • Notice that user/password page allows skipping despite empty fields
  5. Put anything in for Account name
  6. Add account
  7. Connect to account, disconnect
  8. Edit account
  9. If crash, edit account again

Expected

Empty Username and Password are not allowed when adding a core account.

QuasselDroid does not crash when editing if this situation happens anyways.

Editing the account works as usual.

Actual

QuasselDroid accepts an empty Username and Password.

One of these times, trying to edit the account afterwards to fix the situation results in a crash. Trying to edit the account after that crash allowed fixing the situation, but the User validation glitched, showing Username cannot be empty twice, one of them never disappearing.

Additional

I can't recreate the crash at the moment, but the user/password allowing empty is broken reliably.

Crash log from editing empty account

Quasseldroid-v0.4.0-182-g3444dbf-debug - 2018-5-23 - crash after empty account.txt

Screenshot of QuasselTest edit formerly-empty account after crash, Username validation bug

Screenshot of QuasselTest editing a formerly empty account.  The username and password field are empty, and username shows Username cannot be emptyUsername cannot be empty, i.e. repeating the message.