The problem was that field_count is not initialized for the Protocol variable used when printing metadata.
Attach a file by drag & drop or click to upload