[jdk16] RFR: JDK-8241353: NPE in ToolProvider.getSystemJavaCompiler

Jonathan Gibbons jjg at openjdk.java.net
Wed Dec 16 00:52:02 UTC 2020

Trivial fix to avoid NPE by using `Objects.equals` instead of direct `String.equals`


Commit messages:
 - JDK-8241353: NPE in ToolProvider.getSystemJavaCompiler

Changes: https://git.openjdk.java.net/jdk16/pull/32/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk16&pr=32&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8241353
  Stats: 4 lines in 1 file changed: 0 ins; 1 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk16/pull/32.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk16 pull/32/head:pull/32

PR: https://git.openjdk.java.net/jdk16/pull/32

More information about the compiler-dev mailing list