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
Exception in thread "main" java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:472)
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:117)
at org.freecompany.redline.header.Lead.read(Lead.java:72)
at org.freecompany.redline.Scanner.run(Scanner.java:75)
at org.freecompany.redline.Scanner.main(Scanner.java:43)
The issue was on line 73 of Lead.java.
while (((b = data.get()) != 0)) builder.append(( char) b);
Exception running against RPM.
Exception in thread "main" java.nio.BufferUnderflowException
at java.nio.Buffer.nextGetIndex(Buffer.java:472)
at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:117)
at org.freecompany.redline.header.Lead.read(Lead.java:72)
at org.freecompany.redline.Scanner.run(Scanner.java:75)
at org.freecompany.redline.Scanner.main(Scanner.java:43)
The issue was on line 73 of Lead.java.
while (((b = data.get()) != 0)) builder.append(( char) b);
Needed to become:
while ((data.hasRemaining() && (b = data.get()) != 0)) builder.append(( char) b);
The text was updated successfully, but these errors were encountered: