Skip to content

Fix UnknownAttribute.getBytes()#28

Open
hscheidl wants to merge 1 commit intotking:masterfrom
hscheidl:master
Open

Fix UnknownAttribute.getBytes()#28
hscheidl wants to merge 1 commit intotking:masterfrom
hscheidl:master

Conversation

@hscheidl
Copy link
Contributor

The issue occurs when trying to deserialize an UNKNOWN-ATTRIBUTES attribute with just one attribute type.

java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
	at java.base/java.util.Vector.elementAt(Vector.java:466)
	at de.javawi.jstun.attribute.UnknownAttribute.getBytes(UnknownAttribute.java:62)
	at de.javawi.jstun.attribute.MessageAttribute.getLength(MessageAttribute.java:76)
	at de.javawi.jstun.header.MessageHeader.getBytes(MessageHeader.java:121)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant