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

IntegrationServiceImpl.hasDesktopShortcut() throws NPE

    XMLWordPrintable

Details

    • x86_64
    • windows_7

    Description

      FULL PRODUCT VERSION :
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      In an application started using Webstart a call to IntegrationService.hasDesktopShortcut throws the an NPE



      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_31"
      Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      In an application started using Webstart call the method IntegrationService.hasDesktopShortcut()

                  integrationService = (IntegrationService) javax.jnlp.ServiceManager.lookup(
                          "javax.jnlp.IntegrationService");
                   final boolean hasDesktopShortcut = integrationService.hasDesktopShortcut();


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Either true or false, but no Exception
      ACTUAL -
      Classname of Throwable=java.lang.NullPointerException
      Error during invocation of operation 'Programmverknüpfungen'
      null
      java.lang.NullPointerException
      at com.sun.javaws.WinInstallHandler.whichShortcutsExist(Unknown Source)
      at com.sun.jnlp.IntegrationServiceImpl$2.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.jnlp.IntegrationServiceImpl.hasShortcut(Unknown Source)
      at com.sun.jnlp.IntegrationServiceImpl.hasDesktopShortcut(Unknown Source)
      at de.stahlgruber.universal.client.base.ShortcutsDialog.<init>(ShortcutsDialog.java:108)
      at de.stahlgruber.universal.client.SettingsMenuEd.createShortcutsDialog(SettingsMenuEd.java:149)
      at de.stahlgruber.universal.client.SettingsMenuEd$2.execute(SettingsMenuEd.java:43)
      at com.karneim.editor.gui.comp.OperationMenuItem.execute(OperationMenuItem.java:75)
      at com.karneim.editor.gui.comp.OperationMenuItem$2.run(OperationMenuItem.java:83)
      at java.awt.event.InvocationEvent.dispatch(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Activity

          People

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: