chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Hübel <jhue...@opentext.com>
Subject RE: difficulty in copying the name of childFolders in an array
Date Tue, 10 Jan 2012 11:52:23 GMT
Perhaps you should try one of these...
http://www.google.de/#q=java%20beginners%20tutorial
before using this mailing list.




-----Original Message-----
From: learning coding [mailto:learning.coding25@gmail.com] 
Sent: Dienstag, 10. Januar 2012 12:18
To: dev@chemistry.apache.org
Subject: difficulty in copying the name of childFolders in an array

Hi

*I have a problem in copying the data in array from object variable which
is also a type String.*
Please explain
**
*int* k =1;

*String[] childRoot = **null;
*

*while*(o.getName().equalsIgnoreCase(root[k])){

*for* (CmisObject d : ((Folder) o).getChildren()) {

System.*out*.println(" Name " + d.getName());

childRoot[k]=d.getName();   // line no 248

}

*output*
    Name try 1
    java.lang.NullPointerException
    at 248

*Please explain why this is throwing nullPointer Exception though i am able
to print the same String.*
**
*Thank you*
**
**
*Regards*

Mime
View raw message