You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Stringif (s != null && s.charAt(0) != '-') //<= And here s.charAt(0) return a StringIndexOutOfBoundsExceptionheader.narrativeTableName = s.trim();
...
I think if we add a condition if !s.isEmpty() it could resolve the problem.
Thanks
The text was updated successfully, but these errors were encountered:
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):I think if we add a condition if
!s.isEmpty()
it could resolve the problem.Thanks
The text was updated successfully, but these errors were encountered: