NullPointerException prevents users without View Setup user perm from opening custom links or buttons on custom objects
Last updated 2017-10-14 ·Reference W-3217795 ·Reported By 0 users
Unable to click on custom buttons on a certain custom object (Country_Details__c). Upon further analysis it looks like this is due to a NPE occurring.
- Actual Result:
Custom button on a certain custom object take us to nowhere, shows blank page.
- Expected Result:
Custom buttons on a certain custom object should take us to the URL set.
Steps to reproduce locally:
a) Create custom object Country_Details__c and a tab for it
b) Add custom field of type master-detail relationship with Opportunities.
c) Create a custom button of type Detail Page Button called "Test Button". Set Content to URL and enter a valid URL (e.g. https://www.google.com). Add custom button to layout
d) Clone the standard Standard Profile and make sure View Setup is OFF and profile has at least Read access to Country_Details__c
e) Create a Country_Details__c record and navigate to it as a user with the profile created in d).
f) Click "Test Button" and notice redirection to URL specified in button does not take place.
-- Giving View Setup user perm to the affected user acts as a workaround.
-- Change a different name without space like (CountryDetails instead of Country_Details__c).
Reported By (0)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.