We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The problem seems to be in the Region(Region otherRegion) copy constructor:
Region(Region otherRegion)
for (int i = 0; i < otherRegion.mIdentifiers.size(); i++) { mIdentifiers.add(new Identifier(otherRegion.mIdentifiers.get(i))); }
This means that for each position that the original region had no identifier, as in the basic example:
new Region("myRangingUniqueId", null, null, null);
the cloned copy (for example, produced when calling startRangingBeaconsInRegion()) will have an Identifier with a null string instead.
startRangingBeaconsInRegion()
A possible fix would be to change the copying loop into:
for (int i = 0; i < otherRegion.mIdentifiers.size(); i++) { Identifier otherIdentifier = otherRegion.mIdentifiers.get(i); mIdentifiers.add(otherIdentifier != null ? new Identifier(otherIdentifier) : null); }
The text was updated successfully, but these errors were encountered:
Fixed region cloning per #26
e9e3f80
Fixed in e9e3f80
Sorry, something went wrong.
No branches or pull requests
The problem seems to be in the
Region(Region otherRegion)
copy constructor:This means that for each position that the original region had no identifier, as in the basic example:
the cloned copy (for example, produced when calling
startRangingBeaconsInRegion()
) will have an Identifier with a null string instead.A possible fix would be to change the copying loop into:
The text was updated successfully, but these errors were encountered: