Support Article

NullPointerException when clicking button in repeating grid



A 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 Messages

In the error pop-up window:
Status: fail
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

  1. Create a repeating grid.
  2. Include a button in the row that has a "Post Value" on-click action.
  3. The error occurs when one clicks the button in the repeating grid.

Root Cause

The 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.


It 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

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.