i using Table with an SQLContainer as data source Iike to do next when i click on row i want to get values from clicked row
I try this bu i get a error
Item item = table.getItem(table.getValue());
String tableString = item.getItemProperty("department_name").toString();
System.out.println(tableString);
table.getVisibleColumns();
ERROR
EVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException: Invocation of method valueChange in com.BTicket.MenuModules.ShowDepartment$1 failed.
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:532)
at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
......................
Caused by: java.lang.NullPointerException
at com.BTicket.MenuModules.ShowDepartment$1.valueChange(ShowDepartment.java:84)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:512)
... 30 more