This PR is a fix for #29. While the data should contain at least one reference, and the server-side API will always return an empty list if there are no references (internal code), this change updates getExternalReferences() to return an empty list in the case where externalReferences is null. The approach is similar to other methods [1][2] in this code base where a field is not marked as @Nullable.
This PR is a fix for #29. While the data should contain at least one reference, and the server-side API will always return an empty list if there are no references (internal code), this change updates
getExternalReferences()
to return an empty list in the case whereexternalReferences
is null. The approach is similar to other methods [1] [2] in this code base where a field is not marked as@Nullable
.