Skip to content

Commit

Permalink
Fix IllegalArgumentException in RichDocumentImageView
Browse files Browse the repository at this point in the history
Differential Revision: D67919648

fbshipit-source-id: 27746f9a7b879b90168588fd0a3d742b17d758ed
  • Loading branch information
Jiaji Grace Zhang authored and facebook-github-bot committed Jan 8, 2025
1 parent e6b0526 commit 43b2160
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public REQUEST getLowResImageRequest() {
* <p>For performance reasons, the array is not deep-copied, but only stored by reference. Please
* don't modify once submitted.
*/
public BUILDER setFirstAvailableImageRequests(REQUEST[] firstAvailableImageRequests) {
public BUILDER setFirstAvailableImageRequests(@Nullable REQUEST[] firstAvailableImageRequests) {
return setFirstAvailableImageRequests(firstAvailableImageRequests, true);
}

Expand All @@ -167,7 +167,7 @@ public BUILDER setFirstAvailableImageRequests(REQUEST[] firstAvailableImageReque
* supplied requests.
*/
public BUILDER setFirstAvailableImageRequests(
REQUEST[] firstAvailableImageRequests, boolean tryCacheOnlyFirst) {
@Nullable REQUEST[] firstAvailableImageRequests, boolean tryCacheOnlyFirst) {
Preconditions.checkArgument(
firstAvailableImageRequests == null || firstAvailableImageRequests.length > 0,
"No requests specified!");
Expand Down

0 comments on commit 43b2160

Please sign in to comment.