Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8288854

getLocalGraphicsEnvironment() on for multi-screen setups throws exception NPE

    XMLWordPrintable

Details

    • b30
    • generic
    • generic

    Backports

      Description

        ADDITIONAL SYSTEM INFORMATION :
        Linux - Centos 7

        A DESCRIPTION OF THE PROBLEM :
        See bugs.freebsd.org Bug 264356 - java/openjdk17: java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment() on for multi-screen setups throws exception: Cannot read the array length because "this.screens" is null


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Run java app that uses call to getLocalGraphicsEnvironment on multi-screen display with Xinerama disabled - display to screen number not zero.
        As described in the freebsd bug report - It is easy to duplicate using xephyr:
        Xephyr :3 -screen 800x600 -screen 800x600


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Program should run
        ACTUAL -
        Null Pointer Exception

        ---------- BEGIN SOURCE ----------
        See above
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Fix suggested in above bug report.

        FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

                serb Sergey Bylokhov
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: