SubwayTooter icon indicating copy to clipboard operation
SubwayTooter copied to clipboard

IllecalFormatConversionException d != [Ljava.lang.Object

Open tateisu opened this issue 2 years ago • 3 comments

https://qdon.space/users/jarm/statuses/108413714163875811

I got this error when i tried to post with poll

Error
IllecalFormatConversionException
d != [Ljava.lang.Object

tateisu avatar Jun 03 '22 14:06 tateisu

Poll Items that maybe posted by other client. https://qdon.space/@jarm/108413708557580493

tateisu avatar Jun 03 '22 14:06 tateisu

it's composition of 2 problem. The first is lack of spread operator * where the code that app showing error, it method receives vararg args :Any? and pass to Context.getString(int stringId, Object args...). by lacking spread operator, second argument of getString will be arrayOf(Object[]), not args it self.

https://github.com/tateisu/SubwayTooter/commit/2273f7f94c461d63e50000f3ea489c3263efd41a fix it. Then the second error appears. image

tateisu avatar Jun 03 '22 14:06 tateisu

Mastodon seems to have changed the number of characters in the voting options from 25 to 40. ST did not follow it.

it's fixed at https://github.com/tateisu/SubwayTooter/commit/238845284af1fb71b29a38d0d4322faa47062f56

tateisu avatar Jun 03 '22 14:06 tateisu