To be able to develop proficiently on Android you need to understand the lifecycles ( Life Cycles ) of the elements. This is a basic feature of the system and dominating it is fundamental.
When you rotate your device the system manager destroys its activity as well as all fragments and elements, saves the current state ( basically the visual features) and reconstructs everything from scratch. For this reason your Logcats are always displayed again.
That means in this process you will lose any reference that has not been properly saved. I recommend that you study lifecycles, especially Activities and Fragments, because they are slightly different.
It follows a diagram of Lifecycle of an activity for you to have an idea.
I recommend that you read this document here. It is in English, but it is FUNDAMENTAL to understand the android system.
Good luck =)
He must be entering again in the Oncreate method, post the screen that is with this problem.
– Wellington Avelino