NullPointerException when clicking button in repeating grid
SummaryA NullPointerException occurs when clicking a button in a repeating grid that has been configured with a "Post Value" on-click action. The exception pop-up occurs in Internet Explorer and Firefox but does not occur in Chrome browser.
Error MessagesIn the error pop-up window:
Message: There has been an issue; please consult your system administrator
In the tracer:
Activity Name: ReloadCell
Step Method: Java
Step Number: 1
Step Status: FAIL
Step Status Info: ** Java Exception: java.lang.NullPointerException
Steps to Reproduce
- Create a repeating grid.
- Include a button in the row that has a "Post Value" on-click action.
- The error occurs when one clicks the button in the repeating grid.
Root CauseThe button element didn't hold a "value" attribute. When "PostAction" on an element is set, it expects the element to have a value and thus it throws a NullPointerException.
The same exception will be thrown if a "PostValue" is configured on a link, icon, and so on.
ResolutionIt is the expected behavior, which is generally experienced in Internet Explorer or Firefox browser, if a "PostValue" is configured on a button, link, icon and so on.
The NullPointerException will appear in Tracer regardless of the browser being used; however, the pop-up generation containing the exception may be dependent on browser configuration.
Published September 1, 2016 - Updated September 15, 2016