0
Android의 서페이스 차트에 추가 할 데이터가 많습니다. 그래프가 올바르게 표시됩니다. 그러나 차트 유형을 IsoSurface로 전환하려고하면 응용 프로그램이 충돌합니다. 라이브러리 자체에있는 것처럼 보이기 때문에 왜 충돌하는지 잘 모르겠습니다. IsoSurface 널 포인터 예외
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();
}
, 그래서 우리가 여기에서 문제를 재현 할 수있는 몇 가지 코드를 게시하시기 바랍니다 : 나는 오류없이이 작업을 수행 할 수 있습니다
E/AndroidRuntime(3719): FATAL EXCEPTION: main
E/AndroidRuntime(3719): java.lang.NullPointerException
E/AndroidRuntime(3719): at com.steema.teechart.drawing.Graphics3D.calc3DPos(Graphics3D.java:1110)
E/AndroidRuntime(3719): at com.steema.teechart.styles.IsoSurface.loopLevels(IsoSurface.java:445)
E/AndroidRuntime(3719): at com.steema.teechart.styles.IsoSurface.drawCell(IsoSurface.java:385)
E/AndroidRuntime(3719): at com.steema.teechart.styles.Surface.drawAllCells(Surface.java:405)
E/AndroidRuntime(3719): at com.steema.teechart.styles.Surface.draw(Surface.java:308)
E/AndroidRuntime(3719): at com.steema.teechart.styles.IsoSurface.draw(IsoSurface.java:113)
E/AndroidRuntime(3719): at com.steema.teechart.styles.Series.drawSeries(Series.java:2357)
E/AndroidRuntime(3719): at com.steema.teechart.Chart.drawAllSeries(Chart.java:790)
E/AndroidRuntime(3719): at com.steema.teechart.Chart.drawAxesSeries(Chart.java:752)
E/AndroidRuntime(3719): at com.steema.teechart.Chart.internalDraw(Chart.java:732)
E/AndroidRuntime(3719): at com.steema.teechart.Chart.paint(Chart.java:2080)
E/AndroidRuntime(3719): at com.steema.teechart.Chart.paint(Chart.java:2096)
E/AndroidRuntime(3719): at com.steema.teechart.TChart.onDraw(TChart.java:317)