The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to create a space from java this is my . i always get nullpointerexception any suggestion or code

joseph emok
May 10, 2013

super.execute();

Space newSpace = new Space();

/*newSpace.setName(getNewKey());

UUID id = new UUID(1,1000);

newSpace.setKey(getNewName()+id);

try{

newSpace= spaceManager.createSpace(newSpace);

}catch(Exception e){

System.out.print(e.getMessage());

}

UUID id = new UUID(1,1000);

newSpace.setKey(getNewName()+id);

setNewKey(getNewName()+id);

int i=0;

for(Space sp: spaceManager.getAllSpaces()){

if(i++==2) newSpace=sp;

}

setSpace(newSpace);*/

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 10, 2013

What line is the NPE?

TAGS
AUG Leaders

Atlassian Community Events