Change CustomLabelFormatter to abstract class
Fix null pointer exception