You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/07/19 08:18:32 UTC

[GitHub] [shardingsphere-elasticjob] Jovons opened a new pull request, #2108: Update ServerStatisticsAPIImpl.java

Jovons opened a new pull request, #2108:
URL: https://github.com/apache/shardingsphere-elasticjob/pull/2108

   jobInstance from unmarshalled can be null. And thereafter it throws NPE error like the following one:
   
   Fixes #ISSUSE_ID.
   ```
   [ERROR] 16:04:12.281 [http-nio-8088-exec-10] o.a.s.e.l.u.w.h.RestExceptionHandler - null
   java.lang.NullPointerException: null
           at org.apache.shardingsphere.elasticjob.lite.lifecycle.internal.statistics.ServerStatisticsAPIImpl.getAllServersBriefInfo(ServerStatisticsAPIImpl.java:71)
           at org.apache.shardingsphere.elasticjob.lite.ui.web.controller.ServerOperationController.getAllServersBriefInfo(ServerOperationController.java:70)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
   ```
   
   Changes proposed in this pull request:
   - add null check for `serverInfo` before it is used. 
   -
   -
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere-elasticjob] TeslaCN merged pull request #2108: Update ServerStatisticsAPIImpl.java

Posted by GitBox <gi...@apache.org>.
TeslaCN merged PR #2108:
URL: https://github.com/apache/shardingsphere-elasticjob/pull/2108


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org