Changeset 470


Ignore:
Timestamp:
07/25/12 12:11:56 (12 years ago)
Author:
pharms
Message:

removed NullPointer?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/treeimpl/TaskTreeNodeImpl.java

    r469 r470  
    255255      clone = (TaskTreeNodeImpl) super.clone(); 
    256256       
    257       clone.mChildren = new ArrayList<TaskTreeNode>(); 
    258        
    259       for (TaskTreeNode child : mChildren) 
    260       { 
    261         clone.mChildren.add(child.clone()); 
     257      if (mChildren != null) 
     258      { 
     259        clone.mChildren = new ArrayList<TaskTreeNode>(); 
     260       
     261        for (TaskTreeNode child : mChildren) 
     262        { 
     263          clone.mChildren.add(child.clone()); 
     264        } 
    262265      } 
    263266       
Note: See TracChangeset for help on using the changeset viewer.