(Is there a better place to ask questions about compliance?)
I’m testing how Tusky responds to kepi, and something seems to be wrong with the way kepi implements verify_credentials
. kepi’s response in the presenting case is
{
"id": "@marnanel",
"username": "marnanel",
"acct": "@marnanel@sandy-heath.thurman.org.uk",
"display_name": "marnanel",
"locked": false,
"avatar": "https://sandy-heath.thurman.org.uk/static/defaults/avatar_9.jpg",
"header": "https://sandy-heath.thurman.org.uk/static/defaults/header.jpg",
"created_at": "2019-12-25T23:51:03.882335Z",
"followers_count": 0,
"following_count": 0,
"statuses_count": 0,
"note": "",
"url": "https://sandy-heath.thurman.org.uk/users/marnanel",
"avatar_static": "https://sandy-heath.thurman.org.uk/static/defaults/avatar_9.jpg",
"header_static": "https://sandy-heath.thurman.org.uk/static/defaults/header.jpg",
"moved_to": null,
"fields": [],
"emojis": [],
"bot": false,
"source": {
"privacy": "public",
"sensitive": false,
"note": "",
"language": "en"
}
}
whereupon Tusky crashes. adb logcat
shows the exception
java.lang.NullPointerException: Attempt to invoke interface method 'int java.lang.CharSequence.length()' on a null object reference
at com.keylesspalace.tusky.entity.Account.getName(SourceFile:1)
which is here and is checking display_name
for zero length. But display_name
is not null in what I sent. Is there something else obviously wrong in what I’m sending, or is this something I should be asking the Tusky devs about?