Hi Team,
Our java extension recently started throwing error while creating java client:
2023-10-05T20:32:04.120+05:30 ERROR 78142 — [nio-8080-exec-1] com.fynd.extension.model.Extension : Exception occurred in renewing access token
java.lang.NullPointerException: Cannot invoke “java.lang.Long.longValue()” because the return value of “com.sdk.common.model.AccessTokenDto.getExpiresIn()” is null
at com.sdk.platform.PlatformOauthClient.setToken(PlatformOauthClient.java:87) ~[fdk-client-java-1.3.1.jar:1.0-SNAPSHOT]
at com.sdk.platform.PlatformOauthClient.renewAccesstoken(PlatformOauthClient.java:140) ~[fdk-client-java-1.3.1.jar:1.0-SNAPSHOT]
at com.fynd.extension.model.Extension.getPlatformClient(Extension.java:209) ~[fdk-extension-java-0.5.0.jar:0.5.0-beta.1]
at com.fynd.extension.service.ExtensionService.getPlatformClient(ExtensionService.java:41) ~[fdk-extension-java-0.5.0.jar:0.5.0-beta.1]
at com.fynd.inventory.service.PrismService.addInvPrism(PrismService.java:38) ~[classes/:na]
at com.fynd.inventory.controller.InventoryController.addInventoryController(InventoryController.java:46) ~[classes/:na]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:578) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-6.0.11.jar:6.0.11]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-6.0.11.jar:6.0.11]
Please suggest if there is any change or patch fix to resolve this issue.