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

AccessibleRelation.getTarget() throws NullPointerException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      kestrel
    • CPU:
      sparc
    • OS:
      solaris_2.5.1, solaris_2.6

      Description



      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)



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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: