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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]