fix null point exception for null elements, handle config build when delimiter null