prevents a NPE which was thrown when a constant is null.
the metadata of the header is stored with an array now