java - IsoSurface Null Pointer Exception -
i have large amount of data i'm adding surface chart in android. graph displayed correctly. however, when try switch chart type isosurface, application crashes. i'm not sure why crashes since seems in library itself. i've included output logcat of crash
e/androidruntime(3719): fatal exception: main e/androidruntime(3719): java.lang.nullpointerexception e/androidruntime(3719): @ com.steema.teechart.drawing.graphics3d.calc3dpos(graphics3d.java:1110) e/androidruntime(3719): @ com.steema.teechart.styles.isosurface.looplevels(isosurface.java:445) e/androidruntime(3719): @ com.steema.teechart.styles.isosurface.drawcell(isosurface.java:385) e/androidruntime(3719): @ com.steema.teechart.styles.surface.drawallcells(surface.java:405) e/androidruntime(3719): @ com.steema.teechart.styles.surface.draw(surface.java:308) e/androidruntime(3719): @ com.steema.teechart.styles.isosurface.draw(isosurface.java:113) e/androidruntime(3719): @ com.steema.teechart.styles.series.drawseries(series.java:2357) e/androidruntime(3719): @ com.steema.teechart.chart.drawallseries(chart.java:790) e/androidruntime(3719): @ com.steema.teechart.chart.drawaxesseries(chart.java:752) e/androidruntime(3719): @ com.steema.teechart.chart.internaldraw(chart.java:732) e/androidruntime(3719): @ com.steema.teechart.chart.paint(chart.java:2080) e/androidruntime(3719): @ com.steema.teechart.chart.paint(chart.java:2096) e/androidruntime(3719): @ com.steema.teechart.tchart.ondraw(tchart.java:317)
i can without errors:
surface surf1 = new surface(tchart1.getchart()); surf1.fillsamplevalues(); try { surface.changetype(surf1, isosurface.class); } catch (illegalargumentexception e) { e.printstacktrace(); } catch (instantiationexception e) { e.printstacktrace(); } catch (illegalaccessexception e) { e.printstacktrace(); } catch (nosuchmethodexception e) { e.printstacktrace(); } catch (invocationtargetexception e) { e.printstacktrace(); }
please, post code can reproduce problem here.
Comments
Post a Comment