Fixed Nullpointer issue in StatusBar.