wangyao5 / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

NullPointerException #279

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
use lib 1.0.0

we got the below crashed as soon we are trying to load the chart.
is there any quick resolution for the crashed.

02-22 09:53:30.264: E/AndroidRuntime(1482): FATAL EXCEPTION: main
02-22 09:53:30.264: E/AndroidRuntime(1482): java.lang.NullPointerException
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
org.achartengine.chart.XYChart.toRealPoint(XYChart.java:805)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
org.achartengine.tools.Pan.apply(Pan.java:74)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
org.achartengine.TouchHandler.handleTouch(TouchHandler.java:126)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
org.achartengine.GraphicalView.onTouchEvent(GraphicalView.java:286)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.View.dispatchTouchEvent(View.java:7218)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2174)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1917)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(P
honeWindow.java:1953)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow
.java:1405)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.app.Activity.dispatchTouchEvent(Activity.java:2410)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneW
indow.java:1901)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.View.dispatchPointerEvent(View.java:7398)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3212)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3157)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4284)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4263)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.jav
a:4355)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:179)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.os.MessageQueue.nativePollOnce(Native Method)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.os.MessageQueue.next(MessageQueue.java:125)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.os.Looper.loop(Looper.java:124)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
android.app.ActivityThread.main(ActivityThread.java:5019)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
java.lang.reflect.Method.invokeNative(Native Method)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
java.lang.reflect.Method.invoke(Method.java:511)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
02-22 09:53:30.264: E/AndroidRuntime(1482):     at 
dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by ashokm.w...@gmail.com on 22 Feb 2013 at 5:10

GoogleCodeExporter commented 9 years ago
Use the 1.1.0 version.
https://repository-achartengine.forge.cloudbees.com/snapshot/org/achartengine/ac
hartengine/1.1.0/

Original comment by dandrome...@gmail.com on 22 Feb 2013 at 5:34