adaption to the changed apis

* NPE and IndexOutOfBound
5 jobs for master in 5 minutes and 12 seconds (queued for 3 minutes and 5 seconds)
Status Job ID Name Coverage
  Build
passed #37732
build:jdk10

00:01:14

passed #37733
build:jdk8

00:01:10

passed #37731
build:jdk9

00:01:17

 
  Test
failed #37734
allowed to fail
test

00:00:32

 
  Deploy
passed #37735
deploy

00:00:58

 
Name Stage Failure
failed
test Test There is an unknown failure, please try again

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
9 actionable tasks: 9 executed
ERROR: Job failed: exit code 1