DWR

NullPointer in DefaultRemoter when calling a static method

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Normal Normal
  • Resolution: Fixed
  • Affects Version/s: 3.0.RC2
  • Fix Version/s: 3.0.RC2
  • Component/s: None
  • Documentation Required:
    No
  • Description:
    Hide
    Looks like the following line was added to DefaultRemoter in RC2/trunk

    if (meth.getDeclaringClass().equals(obj.getClass()))

    (DefaultRemoter:line 745 in trunk build 40)

    When I try to invoke a static method, obj is null on this line resulting in a null pointer exception.
    Show
    Looks like the following line was added to DefaultRemoter in RC2/trunk if (meth.getDeclaringClass().equals(obj.getClass())) (DefaultRemoter:line 745 in trunk build 40) When I try to invoke a static method, obj is null on this line resulting in a null pointer exception.

Activity

Hide
David Marginian added a comment - 06/Jan/10 7:18 PM

Thanks Jeff - good find. I have fixed this (you can get the latest build on our Bamboo CI site). I have also added a test in our testdwr so we won't bust this again.

Show
David Marginian added a comment - 06/Jan/10 7:18 PM Thanks Jeff - good find. I have fixed this (you can get the latest build on our Bamboo CI site). I have also added a test in our testdwr so we won't bust this again.

People

Dates

  • Created:
    06/Jan/10 3:42 PM
    Updated:
    06/Jan/10 7:18 PM
    Resolved:
    06/Jan/10 7:18 PM