Got it compile and deploy. Same issue with trunk
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at org.apache.pivot.wtk.skin.LabelSkin.paint(LabelSkin.java:296) at org.apache.pivot.wtk.Component.paint(Component.java:2092) at org.apache.pivot.wtk.skin.terra.TerraTableViewSkin.paint(TerraTableViewSkin.java:446) at org.apache.pivot.wtk.Component.paint(Component.java:2092) at org.apache.pivot.wtk.Container.paint(Container.java:418) at org.apache.pivot.wtk.Container.paint(Container.java:418) Again, calling layout() inside render() does work around issue. ----- Mail original ----- De: "Sandro Martini" <[email protected]> À: [email protected] Envoyé: Lundi 19 Décembre 2011 14:32:24 Objet: Re: NullPointerException when using Label as CellRenderer Hi, > am using 2.0 core, 2.0 wtk and 2.0 wtk terra. Ok. I can try with latest sources from trunk (near 2.0.1 freeze). > I'l be glad to give the latest snapshots a try, is there a public maven repo > with your snapshot on it? trunk doesn't build here, neither using maven, > neither using eclipse's ant plugin. I'm sorry but out Continuous Build System doesn't save build artifacts, so the simplest way is to download updated sources and build them with ant. Note that you must have JUnit-4.8.x or later in your CLASSPATH, and Java 6 Update 20 or later ... Or if you don't want to checkout from svn, you can download from or mirror of git, here: http://git.apache.org/pivot.git or http://github.com/apache/pivot But in this situation it builds ... what is the error you have ? Note: /** * Default table cell renderer. Renders cell contents as a string. */ public class TableViewCellRenderer extends Label why don't you use it, do you need something special ? Bye Sandro
