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
{{ message }}
This repository was archived by the owner on Sep 7, 2022. It is now read-only.
Hello!
In the Beacon.java class, which implements Parcelable, the writeToParcel method writes these values in the beginning of it
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(type);
dest.writeByteArray(id);
dest.writeString(status);
while the class constructor from a Parcel source tries to read these values
private Beacon(Parcel source) {
type = source.readString();
int len = source.readInt();
id = new byte[len];
source.readByteArray(id);
status = source.readString();
The len variable is read from the source as an int that was never set, and a NullPointer exception is caused when source.readByteArray(id); is invoked.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
In the Beacon.java class, which implements Parcelable, the writeToParcel method writes these values in the beginning of it
while the class constructor from a Parcel source tries to read these values
The len variable is read from the source as an int that was never set, and a NullPointer exception is caused when source.readByteArray(id); is invoked.
The text was updated successfully, but these errors were encountered: