8260592: jpackage tests fail when Desktop is not supported
Reviewed-by: asemenyuk, herrick
This commit is contained in:
parent
d2b0ea1d01
commit
24a262124f
@ -154,6 +154,12 @@ public class Hello implements OpenFilesHandler {
|
||||
|
||||
trace("Environment supports a display");
|
||||
|
||||
if (!Desktop.isDesktopSupported()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
trace("Environment supports a desktop");
|
||||
|
||||
try {
|
||||
// Disable JAB.
|
||||
// Needed to suppress error:
|
||||
|
Loading…
Reference in New Issue
Block a user