Uploaded image for project: 'Commons Modeler'
  1. Commons Modeler
  2. MODELER-28

Possible NullPointerException in IntrospectionUtils

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      IntrospectionUtils#callMethod1(Object target, String methodN, Object param1, String typeParam1, ClassLoader cl)
      could throw a NullPointerException when target is null.

      There are two possible solutions:
      1) remove the method since it's not used at all
      2) return null when target is null like it's done in IntrospectionUtils#callMethod0
      if( target==null )

      { d("Assert: Illegal params " + target ); return null; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            pmay Philip May
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: