A logic error in the block of code in com.sun.tools.jdi.TargetVM is fixed by putting fromByteArray() method within else statement to prevent invoking it when the array b is empty. See issue: [JDK-8339384](https://bugs.openjdk.org/browse/JDK-8339384)
------------- Commit messages: - fix the logic error by adding else to the if block not to invoke fromByteArray if array is empty Changes: https://git.openjdk.org/jdk/pull/20815/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20815&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8339384 Stats: 3 lines in 1 file changed: 2 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/20815.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20815/head:pull/20815 PR: https://git.openjdk.org/jdk/pull/20815
