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

getAction() in javax.swing.text.html.Formview causes NullPointerException

XMLWordPrintable

    • kestrel
    • generic
    • generic

      Lines 421-423 contain the following code:

         String action = (String)formAttr.getAttribute(HTML.Attribute.ACTION);
         // commonly occuring error
         int index = action.indexOf('?');

      If action is null, the call to indexOf throws a NullPointerException.

            svioletsunw Scott Violet (Inactive)
            nrodinsunw Nick Rodin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: