ktakagaki / hayabaya

0 stars 0 forks source link

Fix nullPointerException for Tpe type #1

Closed ghost closed 9 years ago

ghost commented 9 years ago

I think I have understood why this bug happened.

In LoopersInt (and other siblings) when the super constructor was called, the idea was to pass the member variable Tpe type along to the super constructor. However, the Tpe type member variable has not been initialized, so it has to be passed along "hardcoded".

As I understand it, only after the super constructor has been called are the member variables of the child class initialized.

Sorry this bug took me a long time to wrap my head around, I hope codingspeed will increase a bit more now