sys_ref_list URL -- NPE caused if the sysparm_target value is a Service Catalog reference variable with an advanced ref. qualifier that includes javascript, and the list is accessed outside of the Catalog Item.

Steps to Reproduce

  1. Incognito browser window -- browser cache plays a role in this.
    2. Create a reference variable on any item.
    - Set the reference to incident (or anything).
    - Set 'Use reference qualifer' to 'Advanced.'
    - Set the Reference Qualifier to: javascript:'active=true' (or anything).

    3. Grab the sys_id of the variable.
    4. Go to /<sys_id>&sysparm_view=sys_ref_list

    EXPECTED: List loads.
    ACTUAL: List does not load, NPE in logs.


    null:539:730: <g2:list_record_sys_ref_list> java.lang.NullPointerException: java.lang.NullPointerException: com.glide.processors.xmlhttp.LightweightReferenceUtil.addQuestionReference(

    In, it looks like clientRecord remains null.


    If you open up the Catalog Item:

    And click the Magnifying Glass, the list will open up without issue (uses the same URL). Afterwards, you won't be able to reproduce the issue. Something is cached in the browser that prevents it from happening again.


    Issue comes into play when using ATF (Automated Test Framework).


There is no workaround for this issue.

Related Problem: PRB1292851

Seen In

There is no data to report.

Intended Fix Version

New York

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:41:09