sadr0b0t / yashlang

PeerTube and YouTube player for Android with local playlists and whitelisted recommendations
GNU General Public License v3.0
51 stars 3 forks source link

java.lang.ArrayIndexOutOfBoundsException при открытии ролика #114

Open sadr0b0t opened 2 years ago

sadr0b0t commented 2 years ago

Произошел вылет при открытии ролика PeerTube. Возможно, был какой-то глюк сервера или сетевого соединения. Ролики в списке в этот момент отображались, как будто их удилили на сервере (не прогрузили превью). Потом не воспроизвелось.

java.lang.ArrayIndexOutOfBoundsException: length=19; index=-1
    at android.icu.text.DigitList.isIntegral(DigitList.java:289)
    at android.icu.text.DecimalFormat.parse(DecimalFormat.java:2034)
    at android.icu.text.DecimalFormat.parse(DecimalFormat.java:1931)
    at java.text.DecimalFormat.parse(DecimalFormat.java:804)
    at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:2353)
    at java.text.SimpleDateFormat.parseInternal(SimpleDateFormat.java:1615)
    at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1528)
    at java.text.DateFormat.parse(DateFormat.java:360)
    at su.sadrobot.yashlang.util.TimestampConverter.fromTimestamp(TimestampConverter.java:23)
    at su.sadrobot.yashlang.model.VideoItemDao_Impl$14$1.convertRows(VideoItemDao_Impl.java:1374)
    at androidx.room.paging.LimitOffsetDataSource.loadInitial(LimitOffsetDataSource.java:127)
    at androidx.paging.PositionalDataSource.dispatchLoadInitial(PositionalDataSource.java:286)
    at androidx.paging.TiledPagedList.<init>(TiledPagedList.java:107)
    at androidx.paging.PagedList.create(PagedList.java:229)
    at androidx.paging.PagedList$Builder.build(PagedList.java:388)
    at androidx.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:206)
    at androidx.paging.LivePagedListBuilder$1.compute(LivePagedListBuilder.java:171)
    at androidx.lifecycle.ComputableLiveData$2.run(ComputableLiveData.java:101)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    at java.lang.Thread.run(Thread.java:764)