#283 ReflectionUtils.findAMethod can escape by returning null

Dozer v5.3.0
closed-fixed
5
2010-10-10
2010-10-08
No

Calls to ReflectionUtils.findAMethod are guarded by catching NoSuchMethodException and then throwing a descriptive MappingException, e.g. in GetterSetterPropertyDescriptor.writeDeepDestinationValue. However ReflectionUtils.findAMethod can return null through ReflectionUtils.findMethod, thus breaking the contract of throwing NoSuchMethodException if the method was not found and causing a non-descriptive NullPointerException in the subsequent call of Method.invoke on null.

Discussion

  • dmitry (lv)

    dmitry (lv) - 2010-10-10

    Fixed in trunk.

     
  • dmitry (lv)

    dmitry (lv) - 2010-10-10
    • milestone: 1129554 --> Dozer v5.3.0
    • assigned_to: nobody --> buzdin
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks