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

AccessibleRelation.getTarget() throws NullPointerException

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_2.5.1, solaris_2.6



      Name: aaC67449 Date: 07/21/99



      The AccessibleRelation.getTarget() method throws NullPointerException

      ------------- example --------------
      import javax.accessibility.AccessibleRelation;
      import java.awt.*;

      public class Test {
          public static void main(String argv[]) {
              AccessibleRelation ar= new AccessibleRelation(
                      AccessibleRelation.CONTROLLER_FOR);
       
              System.out.println("Target:"+ar.getTarget());
          }
      }

      ------------- output ---------------
      Exception in thread "main" java.lang.NullPointerException
              at javax.accessibility.AccessibleRelation.getTarget(AccessibleRelation.java, Compiled Code)
              at Test.main(Test.java, Compiled Code)



      ======================================================================

            lmonsantsunw Lynn Monsanto (Inactive)
            alisunw Ali Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: