diff --git a/src/main/java/htsjdk/variant/vcf/VCFCodec.java b/src/main/java/htsjdk/variant/vcf/VCFCodec.java index 844a07688a..b03af9f8b2 100644 --- a/src/main/java/htsjdk/variant/vcf/VCFCodec.java +++ b/src/main/java/htsjdk/variant/vcf/VCFCodec.java @@ -105,13 +105,10 @@ protected void reportDuplicateInfoKeyValue(final String duplicateKey, final Stri */ protected Map parseInfo(String infoField) { if ((infoField.indexOf(' ') != -1) && !version.isAtLeastAsRecentAs(VCFHeaderVersion.VCF4_3)) { - generateException( - String.format("Whitespace is not allowed in the INFO field in VCF version %s: %s", - version == null ? - "unknown" : - version.getVersionString(), - infoField) - ); + generateException(String.format( + "Whitespace is not allowed in the INFO field in VCF version %s: %s", + version.getVersionString(), + infoField)); } return super.parseInfo(infoField); }