Aktualisiert am May 28, 2017
java.lang.NullPointerException bug occurred when the phone was being rotated while initialising the Activity. The reason is that the thread responsible for downloading and showing the available weeks continued to run and tried to show or hide the “Next week” buttons even though they didn’t exist anymore (because of the Activity recreation caused by the phone rotation). Simple null checking fixed this bug.