[hg] main-silver: #221817: Cannot initialize 0th child of node d...

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: #221817: Cannot initialize 0th child of node d...
  • Date: Wed, 14 Nov 2012 10:42:59 -0800

changeset 0c9de3ddbd5c in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/0c9de3ddbd5c
description:
        #221817: Cannot initialize 0th child of node 
db.explorer.node.CatalogNode

diffstat:

 db/src/org/netbeans/api/db/explorer/node/ChildNodeFactory.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/db/src/org/netbeans/api/db/explorer/node/ChildNodeFactory.java 
b/db/src/org/netbeans/api/db/explorer/node/ChildNodeFactory.java
--- a/db/src/org/netbeans/api/db/explorer/node/ChildNodeFactory.java
+++ b/db/src/org/netbeans/api/db/explorer/node/ChildNodeFactory.java
@@ -95,7 +95,7 @@
             return new Node[] {  };
         }
         else {
-            return new Node[] { childNode };
+            return new Node[]{childNode.cloneNode()}; // clone - see #221817
         }
     }
 

[hg] main-silver: #221817: Cannot initialize 0th child of node d...

Jaroslav Havlin 11/14/2012

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close