Selecting items in editable tables

Hello.
I got a problem. When my table is in selectable mode I can get access to every item in table. But when I change table into editable mode I recieve null pointer. Any idea how can I get access to items in editable mode?
Here is part of code which I use:


table_profil = new Table("Dane użytkownika", beans3);
		table_profil.setImmediate(true);
		table_profil.setWidth("-1px");
		table_profil.setHeight("-1px");
//		table_profil.setEditable(true);
		table_profil.setSelectable(true);
		layout_profil.addComponent(table_profil);

public void update()
	{
		if (table_profil.getValue() != null){
			
			System.out.println("adbabdwa1231224");
		Item profil = table_profil.getItem(table_profil.getValue());
		System.out.println("adbabdwa");
//		beans3.addItem(profil);
		System.out.println(profil);
		login1 = profil.getItemProperty("login").toString();
		 System.out.println(login1);
		pass1 = profil.getItemProperty("pass").toString();
		System.out.println(pass1);
		name1 = profil.getItemProperty("name").toString();
		System.out.println(name1);
		nazwisko1 = profil.getItemProperty("nazwisko").toString();
		System.out.println(nazwisko1);
		email = profil.getItemProperty("email").toString();
		System.out.println(email);
		legitymacja = profil.getItemProperty("legitymacja").toString();
		System.out.println(legitymacja);
		
		db.connect();
//		updateProfil();
		}
	}

Where I need to edit to get what I want?
Thanks for help

Resolved after making checkbox which controls when table is in editable / selectable mode :slight_smile: