yunjianwu / achartengine

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

Pinch to zoom crashes the program. #320

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a graph in an activity and a fragment (you get different results)
2. Before creating and adding a series disable zoom, like so: 
'mRenderer.setZoomEnabled(false, false);'
3. After creating and adding a series, enable zoom, like so: 
'mRenderer.setZoomEnabled(true, true);'

What is the expected output? What do you see instead?
In an activity, nothing happens.

In a fragment, a Null Pointer Exception happens
logcat:
E/AndroidRuntime: FATAL EXCEPTION: main
        java.lang.NullPointerException
        at org.achartengine.TouchHandler.applyZoom(TouchHandler.java:158)
        at org.achartengine.TouchHandler.handleTouch(TouchHandler.java:114)
        at org.achartengine.GraphicalView.onTouchEvent(GraphicalView.java:289)
        at android.view.View.dispatchTouchEvent(View.java:7246)

What version of the product binary library are you using?
Latest commit (as of June 14, 2013)

Please provide any additional information below.
I had no issues using this in previous versions of acharengine. The last time I 
remember this working correctly was with one of the later nightly version of 
1.1.0.

Original issue reported on code.google.com by ydin...@gmail.com on 14 Jun 2013 at 2:34

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 31 Oct 2013 at 8:22