Skip to content

Commit

Permalink
Code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmcmu committed Feb 21, 2025
1 parent 5e936f0 commit 8c62215
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,14 @@ private Object parseFlatField(FieldDef fd, boolean isLittleEndian) throws Unpars
else
{
boolean shouldTrim = shouldTrimStrings;
fieldValue = getNullTerminatedString(fd.getSourceType(), shouldTrim);
try
{
fieldValue = getNullTerminatedString(fd.getSourceType(), shouldTrim);
}
catch (IOException e)
{
throw new UnparsableContentException("Parsing VAR_STRING: " + fd.getFieldName() + " failed with error: " + e.getMessage(), e);
}
}
break;
}
Expand Down

0 comments on commit 8c62215

Please sign in to comment.