Fix possible nullpointer in balana