Init is called only after class has been instantiated.

Was giving NPE if addData was being called before subclass fields were initialized.