Tree ItemClickListener problem

tree.addListener(new ItemClickListener() {

		/**
		 * 
		 */
		private static final long serialVersionUID = -949971973801392002L;

		public void itemClick(ItemClickEvent event) {
			// TODO Auto-generated method stub
		
			if(tree.getValue().toString().equals("Android"))
				hsPanle.setSecondComponent(new Android().AndroidMain());
			else
				hsPanle.setSecondComponent(new Label("Ni ni andoirddasf"));
			
		}
	});

[/code]

Which returns me null pointer exception in tree.getValue().toString().equals(“Android”);

my tree is put together like this:


final Object[][]
 projects = new Object[][]
{
		        new Object[]{"Android", "Working days", "Coupon Calculator", "Fartoid"},    
		        new Object[]{"Vaadin", "This page", "TKO Litija"}};
		        
		
			tree.setNullSelectionAllowed(false);
			tree.setImmediate(true);

		/* Add planets as root items in the tree. */
		for (int i=0; i<projects.length; i++) {
		    String planet = (String) (projects[i]
[0]
);
		    tree.addItem(planet);
		    
		    if (projects[i]
.length == 1) {
		        // The planet has no moons so make it a leaf.
		        tree.setChildrenAllowed(planet, false);
		    } else {
		        // Add children (moons) under the planets.
		        for (int j=1; j<projects[i]
.length; j++) {
		            String moon = (String) projects[i]
[j]
;
		            
		            // Add the item as a regular item.
		            tree.addItem(moon);
		            
		            // Set it to be a child.
		            tree.setParent(moon, planet);
		            
		            // Make the moons look like leaves.
		            tree.setChildrenAllowed(moon, false);
		        }

		        // Expand the subtree.
		        tree.expandItemsRecursively(planet);
		    }
		}

Thank you, for your help

Try to use event.getItemId() not tree.getValue()