RemoteIssueLInk object not returning expected values

Hello,

As per the docs here - https://docs.atlassian.com/software/jira/docs/api/7.12.3/com/atlassian/jira/issue/link/RemoteIssueLink.html
I expect the following details from the remoteIssueLink object but instead I am only getting values from “getTitle()” and “getUrl()” rest of the methods don’t return anything.

    log.info it.getTitle()
    log.info it.getStatusName()
    log.info it.getSummary()
    log.info it.getIconTitle()
    log.info it.getUrl()

Many of the fields are optional. Is it possible they are just… null?