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

java.awt.dnd.DropTarget() throws NullPointerException

XMLWordPrintable

    • 1.2beta4
    • sparc
    • solaris_2.5
    • Verified



      Name: sdC67446 Date: 05/18/98


      Constructor java.awt.dnd.DropTarget() always throws NullPointerException.

      Here what doc says:

      public DropTarget()
              throws SecurityException

          Construct a DropTarget

      --------------------------------------------------
      Here is the test demostrating the bug:
      --------------------------------------------------
      import java.awt.dnd.*;

      public class Test {

          public static void main(String[] args) {
            try {
              DropTarget dt = new DropTarget();
            } catch (NullPointerException e) {
              System.out.println(e);
            }
          }
      }

      Here is test's output (jdk1.2beta4F):
      --------------------------------------------------
      JAVA2D_USEPLATFORMFONT not set
      Disabling platform fonts
      java.lang.NullPointerException: component

      --------------------------------------------------
      ======================================================================

            lcablesunw Larry Cable (Inactive)
            sdmitriesunw Sergei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: