It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Community Leader May 10, 2013

What line is the NPE?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Europe

Daniel Meisen, kreuzwerker, Video and Slides online

Video and slides from this week's Monday Night Special are online. Learn more about the differences between Atlassian Server/Data Center and Atlassian Cloud from Daniel Meisen, kreuzwerker, and find ...

7 views 0 0
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you