department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
282 stars 203 forks source link

CES-1234: VPG: ensure that default paging values are used on Clinics endpoint #95850

Closed drewconnelly closed 3 days ago

drewconnelly commented 4 days ago

Executing the following query against vetsapi-patient-gateway in SQA yields a NullPointerException: https://veteran.apps-staging.va.gov/vpg/v1/locations/983/clinics?clinicalService=optometry&enableStopCodeFilter=true&pageSize=0

java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue" because "pageNumber" is null at gov.va.mobile.vpg.v1.resource.ClinicResource.getClinics(ClinicResource.java:40) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)