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

NullPointerException thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • cts_5.0
    • core-libs
    • None
    • b91
    • generic
    • generic
    • Not verified

      Sample code to demo the problem with passing a null to a method also results in a NullPointerException within EoD RI
      I could not get a successful execution of a method such as

      @Update("insert into foo("?1")
      void addFoo(String x)


      if i changed the method to return an int, it worked fine
      if i have an EoD Update such as

      @Update("insert into foo values(?1, ?2)")
       int insertRow(String x, String y)


      if i invoke insertRow("x", null)

      I get an Exception processing the arguments (the table supports nulls for the column but
      the Exception is before it gets to the backend)
      I cannot have more then 9 parameters in my eod query if i have ?10, it will fail to parse the query correctly

            ahandasunw Amit Handa (Inactive)
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: