Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

8288854: getLocalGraphicsEnvironment() on for multi-screen setups throws exception NPE #81

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -236,7 +236,7 @@ private synchronized void initDevices() {
throw new AWTError("no screen devices");
}
int index = getDefaultScreenNum();
mainScreen = 0 < index && index < screens.length ? index : 0;
mainScreen = 0 < index && index < numScreens ? index : 0;

for (int id = 0; id < numScreens; ++id) {
devices.put(id, old.containsKey(id) ? old.remove(id) :
Expand Down