@@ -647,7 +647,7 @@ public TokenCodecEncoder name(final String value)
647647 final byte [] bytes ;
648648 try
649649 {
650- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
650+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
651651 }
652652 catch (final java .io .UnsupportedEncodingException ex )
653653 {
@@ -734,7 +734,7 @@ public TokenCodecEncoder constValue(final String value)
734734 final byte [] bytes ;
735735 try
736736 {
737- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
737+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
738738 }
739739 catch (final java .io .UnsupportedEncodingException ex )
740740 {
@@ -821,7 +821,7 @@ public TokenCodecEncoder minValue(final String value)
821821 final byte [] bytes ;
822822 try
823823 {
824- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
824+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
825825 }
826826 catch (final java .io .UnsupportedEncodingException ex )
827827 {
@@ -908,7 +908,7 @@ public TokenCodecEncoder maxValue(final String value)
908908 final byte [] bytes ;
909909 try
910910 {
911- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
911+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
912912 }
913913 catch (final java .io .UnsupportedEncodingException ex )
914914 {
@@ -995,7 +995,7 @@ public TokenCodecEncoder nullValue(final String value)
995995 final byte [] bytes ;
996996 try
997997 {
998- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
998+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
999999 }
10001000 catch (final java .io .UnsupportedEncodingException ex )
10011001 {
@@ -1082,7 +1082,7 @@ public TokenCodecEncoder characterEncoding(final String value)
10821082 final byte [] bytes ;
10831083 try
10841084 {
1085- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
1085+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
10861086 }
10871087 catch (final java .io .UnsupportedEncodingException ex )
10881088 {
@@ -1169,7 +1169,7 @@ public TokenCodecEncoder epoch(final String value)
11691169 final byte [] bytes ;
11701170 try
11711171 {
1172- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
1172+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
11731173 }
11741174 catch (final java .io .UnsupportedEncodingException ex )
11751175 {
@@ -1256,7 +1256,7 @@ public TokenCodecEncoder timeUnit(final String value)
12561256 final byte [] bytes ;
12571257 try
12581258 {
1259- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
1259+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
12601260 }
12611261 catch (final java .io .UnsupportedEncodingException ex )
12621262 {
@@ -1343,7 +1343,7 @@ public TokenCodecEncoder semanticType(final String value)
13431343 final byte [] bytes ;
13441344 try
13451345 {
1346- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
1346+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
13471347 }
13481348 catch (final java .io .UnsupportedEncodingException ex )
13491349 {
@@ -1430,7 +1430,7 @@ public TokenCodecEncoder description(final String value)
14301430 final byte [] bytes ;
14311431 try
14321432 {
1433- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
1433+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
14341434 }
14351435 catch (final java .io .UnsupportedEncodingException ex )
14361436 {
@@ -1517,7 +1517,7 @@ public TokenCodecEncoder referencedName(final String value)
15171517 final byte [] bytes ;
15181518 try
15191519 {
1520- bytes = value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
1520+ bytes = null == value || value .isEmpty () ? org .agrona .collections .ArrayUtil .EMPTY_BYTE_ARRAY : value .getBytes ("UTF-8" );
15211521 }
15221522 catch (final java .io .UnsupportedEncodingException ex )
15231523 {
0 commit comments