JaroslavTulach commented on a change in pull request #2317:
URL: https://github.com/apache/netbeans/pull/2317#discussion_r481639961
##########
File path:
platform/autoupdate.services/src/org/netbeans/modules/autoupdate/services/OperationContainerImpl.java
##########
@@ -530,4 +532,33 @@ public OperationType getType () {
}
private OperationType type;
private OperationContainer delegate;
+
+ /**
+ * @return the unpack200 executable or {@code null}
+ */
+ public final File getUnpack200() {
+ NO_PACK: if (unpack200 == null) {
+ final String jreHome = System.getProperty("java.home"); // NOI18N
+ if (jreHome == null) {
+ break NO_PACK;
+ }
Review comment:
`java.home` maybe be missing on some obscure JVMs. Bck2Brwsr doesn't
have it. Native image was missing it at the beginning. I am usually trying to
check for `null` after reading it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists