You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Richard Emberson (JIRA)" <ji...@apache.org> on 2010/12/18 17:10:01 UTC

[jira] Created: (WICKET-3271) Component getBehaviorsRawList returns null IBehaviors

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.


[jira] Resolved: (WICKET-3271) Component getBehaviorsRawList returns null IBehaviors

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-3271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-3271.
-----------------------------------

    Resolution: Invalid
      Assignee: Igor Vaynberg

raw list is supposed to return a list that may contain nulls. and in any case, i believe its gone in post m3.

> 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
>            Assignee: Igor Vaynberg
>            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.