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

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 Leaders.
May 10, 2013

What line is the NPE?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events