Added safety check in case the byte buffer is NULL.
This commit is contained in:
parent
a61e0be5eb
commit
715bc509bc
@ -30,6 +30,8 @@ public abstract class USB_Descriptor_Header
|
||||
|
||||
public USB_Descriptor_Header(final ByteBuffer data)
|
||||
{
|
||||
if (data == null)
|
||||
throw new IllegalArgumentException("data must not be null");
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user