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

NPE at com.sun.glass.ui.win.WinAccessible.GetPatternProvider(WinAccessible.java:554)

    Details

      Description

      FULL PRODUCT VERSION :
      1.8u131

      ADDITIONAL OS VERSION INFORMATION :
      Windows 10 64 bit ver 1703 OS build 15063.540

      A DESCRIPTION OF THE PROBLEM :
      Unfortunately I can't reproduce this but we have a customer that is seeing the following crash signature:

      FATAL - Thread: Thread[JavaFX Application Thread,5,main]
      java.lang.NullPointerException
      at com.sun.glass.ui.win.WinAccessible.GetPatternProvider(WinAccessible.java:554) ~[jfxrt.jar:?]
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[jfxrt.jar:?]
      at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) ~[jfxrt.jar:?]
      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

      Even though I can't reproduce this myself, I have taken a look at the code where it is crashing in WinAccessible line 554. There really should be a null check just before this in WinAccessible.GetPatternProvider line 552 as the getAttribute function can potentially return null and is documented as such if you follow back from this function and look at getAccessControlContext.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      I can't reproduce this but we have a customer that is intermittently seeing this issue.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A NullPointerException should be tested for to avoid a crash as it is an expected return value in certain cases.
      ACTUAL -
      We get a NullPointerException crash.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      FATAL - Thread: Thread[JavaFX Application Thread,5,main]
      java.lang.NullPointerException
      at com.sun.glass.ui.win.WinAccessible.GetPatternProvider(WinAccessible.java:554) ~[jfxrt.jar:?]
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) ~[jfxrt.jar:?]
      at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) ~[jfxrt.jar:?]
      at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]

      REPRODUCIBILITY :
      This bug can be reproduced occasionally.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: