Notifications

30 views

Symptoms

The following warning message appears under System Log > Warnings after a London Patch 6 upgrade:

019-02-28 10:59:23 (594) Default-thread-1 304AFDD3DBB327003C3A54F9489619CE txid=8186221bdb37 [0:00:00.013] getRealForm 
2019-02-28 10:59:23 (612) Default-thread-1 304AFDD3DBB327003C3A54F9489619CE txid=8186221bdb37 WARNING *** WARNING *** Evaluator: java.lang.NullPointerException 
Caused by error in sys_script_include.c22bf956c3330200d68d3b0ac3d3aeb1.script at line 63 
com.glideapp.servicecatalog.scoped.api.CatalogJS.jsFunction_isWishlistEnabled(CatalogJS.java:181) 
sun.reflect.GeneratedMethodAccessor1654.invoke(Unknown Source)


The message corresponds to the script include GlobalServiceCatalogUtil where line 63 is: 

isWishListEnabled : function(catalogId) { 
//Checks if an item in a catalog can be added to wish list 
return new sn_sc.Catalog(catalogId).isWishlistEnabled(); 
}, 

CatalogJS - isWishlistEnabled() is documented here: 
https://docs.servicenow.com/bundle/london-application-development/page/app-store/dev_portal/API_reference/CatalogJS/concept/CatalogJSScopedAPI.html 

Cause

The wish list feature for the catalog record that produced the error is not enabled.

Resolution

To enable wish list feature for catalog end users, select the check box for Enable Wish List in the catalog record.

The wish list feature does not function if the property glide.ui.doctype is set to false.

 

Article Information

Last Updated:2019-03-19 16:20:43
Published:2019-03-19