Known Swagger Issue - null pointer exception

Null pointer exception in development environments

Issue

Under specific circumstances, attempting to perform an action in Swagger UI that requires PolicyCenter authentication can cause a null pointer exception. This happens if you use the same browser to log into both the PolicyCenter application and the Swagger UI.

In this case, the browser shares the session between the two applications. As a consequence, the PolicyCenter log in does not run through the REST code that is necessary for a REST API to log into the application.

Work-around

Do one of the following:
  • Log out of Guidewire PolicyCenter.
  • Use a different browser type for PolicyCenter than the one you are using for Swagger UI.
  • Use a different tool such as Postman instead of Swagger UI.