-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Description
When I try to read a VPF header with an empty narrative table name, it generates a StringIndexOutOfBoundsException in the VPFTableReader because it's empty at the line 200 (in the readHeader(ByteBuffer)
method):
...
// Read the narrative table name.
s = VPFUtils.readDelimitedText(buffer, ';'); // <= Return an empty String
if (s != null && s.charAt(0) != '-') //<= And here s.charAt(0) return a StringIndexOutOfBoundsException
header.narrativeTableName = s.trim();
...
I think if we add a condition if !s.isEmpty()
it could resolve the problem.
Thanks
Metadata
Metadata
Assignees
Labels
No labels