I should be able to mark shows as watched and unwatched without interruption. When I mark a show as watched it should add to my watched hours, when I mark a show as unwatched it should be removed from my watched shows.
Occasionally when marking a shows as watched or unwatched the application will crash.
How to reproduce
- From either a fresh install or existing install select enter the application and select a TV show. For the purpose of clarity, select "Supernatural"
- Select the episodes tab.
- Quickly switch between marking the two different seasons as watched. For example, click season 1 then 2 then 1 again repeatedly.
- Repeat step until a crash occurs.
Please note that the above steps were not the first way I replicated this issue, this issue first occurred during normal application use, but the above is the only way I can seem to replicate over and over again. Please note I checked the error on the standard behaviour crash and the crash mentioned in my steps and it’s the same exception. I realise that the steps provided may be a low priority crash so I would like to make you’re aware it does occur in normal use. The behaviour I carried out first was simply adding shows I've watched to my watched list and randomly it would crash, this will cause it to crash eventually although nothing I can state with replicable steps. I believe fixing the error mentioned below caused by the steps mention within the steps to reproduce will resolve the issue in standard behaviour too.
05-27 01:50:25.089 18389-18389/pl.hypeapp.episodie E/AndroidRuntime: FATAL EXCEPTION: main
Process: pl.hypeapp.episodie, PID: 18389
java.lang.NullPointerException: Attempt to invoke virtual method 'float android.text.Layout.getLineLeft(int)' on a null object reference
at android.animation.AnimationHandler.-wrap2(Unknown Source:0)
at java.lang.reflect.Method.invoke(Native Method)
Application Version: 1.0.1
Tested on multiple different Android versions both using a physical device and emulators.
| Device | Android Version | Emulator/Physical | Reproducible? |
| Motorola 3 (3rd Generation) | 6.0.1 | Physical | Yes |
| Pixel 2 | 7.1 | Emulated | Yes |
| Pixel 2 | 8.0 | Emulated | Yes |
Recording of the issue
The following video helps to show this issue further: