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 Jan 31, 2022. It is now read-only.
Do you want to request a feature or report a bug? Bug
Bug: What is the current behavior?
public Request getObjectAsync(final @NonNull String objectID, final @Nullable Collection<String> attributesToRetrieve, @Nullable RequestOptions requestOptions, @NonNull CompletionHandler completionHandler
In the MirroredIndex:getObjectAsync we allow attributesToRetrieve to be nullable.
If the index is mirrored we return a new OnlineOfflineGetObjectRequest.
In the constructor we are creating a new ArrayList from attributesToRetrieve.
When the later is null, it will result in a crash.
Bug: What is the expected behavior?
Not crashing would be pretty sweet.
Bug: Which versions?
Latest
Bug: How to reproduce ?
mirroredIndex.getObjectAsync("my-awesome-id", new CompletionHandler() {
@Override
public void requestCompleted(JSONObject jsonObject, AlgoliaException e) {
//...
}
});
The text was updated successfully, but these errors were encountered:
robertmogos
changed the title
MirrorIndex:getObjectAsync is crashing
MirroredIndex:getObjectAsync is crashing
Dec 6, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Do you want to request a feature or report a bug?
Bug
Bug: What is the current behavior?
public Request getObjectAsync(final @NonNull String objectID, final @Nullable Collection<String> attributesToRetrieve, @Nullable RequestOptions requestOptions, @NonNull CompletionHandler completionHandler
In the
MirroredIndex:getObjectAsync
we allowattributesToRetrieve
to be nullable.If the index is mirrored we return a new
OnlineOfflineGetObjectRequest
.In the constructor we are creating a new
ArrayList
fromattributesToRetrieve
.When the later is null, it will result in a crash.
Bug: What is the expected behavior?
Not crashing would be pretty sweet.
Bug: Which versions?
Latest
Bug: How to reproduce ?
The text was updated successfully, but these errors were encountered: