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

NullPointerException at sun.print.Win32PrintService.getMediaPrintables(Win32Prin

    XMLWordPrintable

Details

    • 2d
    • 7
    • b102
    • windows_7

    Description

      FULL PRODUCT VERSION :
      java version " 1.7.0_25 "
      Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
      Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)

      Also occurs in

      java version " 1.7.0_21 "
      Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
      Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)

      java version " 1.7.0_15 "
      Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
      Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601] 64bit

      A DESCRIPTION OF THE PROBLEM :
      java.lang.NullPointerException
       at sun.print.Win32PrintService.getMediaPrintables(Win32PrintService.java:431)
       at sun.print.Win32PrintService.getSupportedAttributeValues(Win32PrintService.java:1359)
       at sun.print.ServiceDialog$MarginsPanel.updateInfo(Unknown Source)

      The (decompiled) code at that line:
          /* 431*/if( mediaSizeNames == null && mediaSizeNames.length == 0 )
            /* 432*/return null;

      if mediaSizeNames == null then mediaSizeNames.length must throw that Exception


      REPRODUCIBILITY :
      This bug can be reproduced rarely.

      Attachments

        Activity

          People

            jgodinez Jennifer Godinez (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: