You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Pete Hale (JIRA)" <de...@beehive.apache.org> on 2005/10/13 15:23:05 UTC

[jira] Created: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

NPE on TreeElement when using method clearChildren on a TreeElement with no children
------------------------------------------------------------------------------------

         Key: BEEHIVE-971
         URL: http://issues.apache.org/jira/browse/BEEHIVE-971
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Pete Hale


The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.

Reproduction:

TreeRootElement root = new TreeRootElement();

root.clearChildren();

NPE is thrown


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

Posted by "Carlin Rogers (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-971?page=all ]

Carlin Rogers updated BEEHIVE-971:
----------------------------------

    Fix Version: 1.1

> NPE on TreeElement when using method clearChildren on a TreeElement with no children
> ------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-971
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-971
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Pete Hale
>     Assignee: Carlin Rogers
>      Fix For: 1.1
>  Attachments: j971-patch.txt
>
> The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.
> Reproduction:
> TreeRootElement root = new TreeRootElement();
> root.clearChildren();
> NPE is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

Posted by "Rich Feit (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-971?page=all ]
     
Rich Feit resolved BEEHIVE-971:
-------------------------------

    Resolution: Fixed
     Assign To: Alejandro Ramirez  (was: Rich Feit)

Fixed with revision 325995.  Thanks Carlin!

> NPE on TreeElement when using method clearChildren on a TreeElement with no children
> ------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-971
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-971
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Pete Hale
>     Assignee: Alejandro Ramirez
>      Fix For: 1.1
>  Attachments: j971-patch.txt
>
> The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.
> Reproduction:
> TreeRootElement root = new TreeRootElement();
> root.clearChildren();
> NPE is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

Posted by "Carlin Rogers (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-971?page=all ]

Carlin Rogers reassigned BEEHIVE-971:
-------------------------------------

    Assign To: Carlin Rogers

> NPE on TreeElement when using method clearChildren on a TreeElement with no children
> ------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-971
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-971
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Pete Hale
>     Assignee: Carlin Rogers

>
> The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.
> Reproduction:
> TreeRootElement root = new TreeRootElement();
> root.clearChildren();
> NPE is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

Posted by "Alejandro Ramirez (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-971?page=all ]

Alejandro Ramirez reassigned BEEHIVE-971:
-----------------------------------------

    Assign To: Krista Baker  (was: Alejandro Ramirez)

please verify

> NPE on TreeElement when using method clearChildren on a TreeElement with no children
> ------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-971
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-971
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Pete Hale
>     Assignee: Krista Baker
>      Fix For: 1.1
>  Attachments: j971-patch.txt
>
> The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.
> Reproduction:
> TreeRootElement root = new TreeRootElement();
> root.clearChildren();
> NPE is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

Posted by "Carlin Rogers (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-971?page=all ]

Carlin Rogers reassigned BEEHIVE-971:
-------------------------------------

    Assign To: Rich Feit  (was: Carlin Rogers)

Assigning to Rich for review. Thanks.

> NPE on TreeElement when using method clearChildren on a TreeElement with no children
> ------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-971
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-971
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Pete Hale
>     Assignee: Rich Feit
>      Fix For: 1.1
>  Attachments: j971-patch.txt
>
> The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.
> Reproduction:
> TreeRootElement root = new TreeRootElement();
> root.clearChildren();
> NPE is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

Posted by "Krista Baker (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-971?page=all ]
     
Krista Baker closed BEEHIVE-971:
--------------------------------


Verified that the NPE no longer occurs when calling clearChildren on a TreeElement with no children.

> NPE on TreeElement when using method clearChildren on a TreeElement with no children
> ------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-971
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-971
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Pete Hale
>     Assignee: Krista Baker
>      Fix For: 1.1
>  Attachments: j971-patch.txt
>
> The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.
> Reproduction:
> TreeRootElement root = new TreeRootElement();
> root.clearChildren();
> NPE is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-971) NPE on TreeElement when using method clearChildren on a TreeElement with no children

Posted by "Carlin Rogers (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-971?page=all ]

Carlin Rogers updated BEEHIVE-971:
----------------------------------

    Attachment: j971-patch.txt

Attaching a ptach witht he fix for the NPE in TreeElement.clearChildren() as well as a new BVT.

> NPE on TreeElement when using method clearChildren on a TreeElement with no children
> ------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-971
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-971
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Pete Hale
>     Assignee: Carlin Rogers
>  Attachments: j971-patch.txt
>
> The method clearChildren in TreeElement calls _children.clear() without making sure that the member variable _children is not null.
> Reproduction:
> TreeRootElement root = new TreeRootElement();
> root.clearChildren();
> NPE is thrown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira