Hi ,
I am facing a critical issue using cell label provider for tree viewer in MAC. In windows systems , there is no problem .
I have a scenario for changing the label provider dynamically , for this first i have created
a tree viewer using content provider and label provider(cell label provider).
After that i am trying to change the label provider of the tree viewer using set Label Provider option , But i am getting null pointer exceptions.



Exception:

java.lang.NullPointerException
at org.eclipse.jface.viewers.StyledCellLabelProvider. getViewerCell(StyledCellLabelProvider.java:230)
at org.eclipse.jface.viewers.StyledCellLabelProvider. measure(StyledCellLabelProvider.java:258)
at org.eclipse.jface.viewers.OwnerDrawLabelProvider$O wnerDrawListener.handleEvent(OwnerDrawLabelProvide r.java:56)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display. java:4188)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1467)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1490)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:1475)
at org.eclipse.swt.widgets.TreeItem.calculateWidth(Tr eeItem.java:280)
at org.eclipse.swt.widgets.Tree.setScrollWidth(Tree.j ava:2972)
at org.eclipse.swt.widgets.TreeItem.setText(TreeItem. java:1473)
at org.eclipse.jface.viewers.TreeViewerRow.setText(Tr eeViewerRow.java:116)a
at org.eclipse.jface.viewers.ViewerCell.setText(Viewe rCell.java:159)