Commons Modeler
  1. Commons Modeler
  2. MODELER-28

Possible NullPointerException in IntrospectionUtils

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      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; }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip May
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development