Ok.. Now made the ColumnDef constructor to have maxLength as null for the PColumn that gets created because we will not know the actual length of that array over there. If we do that change then the above change of returning null wont be needed.