Skip to content

Commit 525d183

Browse files
committed
Keep empty strings instead of writing "NULL"
Signed-off-by: Maxime Gervais <gervais.maxime@gmail.com>
1 parent 0b09f15 commit 525d183

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/com/portalmedia/embarc/parser/BytesToStringHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public static String toString(byte[] value) {
202202
}
203203

204204
public static String toTypedString(Class<?> type, byte[] value, ByteOrder byteOrder) {
205-
if(isNull(value, type)) return "NULL";
205+
if(isNull(value, type)) return "";
206206

207207
if (type == byte[].class) {
208208
return toByteArrayString(value);
@@ -285,7 +285,7 @@ private static Boolean isValidShortArray(Integer[] la) {
285285
}
286286
public static String toStandardizedTypedString(Class<?> type, byte[] value, ByteOrder byteOrder) {
287287

288-
if(isNull(value, type)) return "NULL";
288+
if(isNull(value, type)) return "";
289289

290290
if (type == byte[].class) {
291291
return toByteArrayString(value);

0 commit comments

Comments
 (0)