Component getBehaviorsRawList returns null IBehaviors
-----------------------------------------------------

                 Key: WICKET-3271
                 URL: https://issues.apache.org/jira/browse/WICKET-3271
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.5-M3
         Environment: all
            Reporter: Richard Emberson
            Priority: Trivial


In Component the method getBehaviorsRawList returns IBehavior as
well as nulls. The method is private. It is used in two places.
In one place there is an explicit 
If (behavior != null) { ... }
filter removing the returned nulls.
In the second usage, the return is tested for containing a  IBehavior - and here
nulls only make sense if IBehaviors are allowed to be null and actions take
place for such null IBehaviors.
Otherwise, getBehaviorsRawList should not return nulls.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to