adepondra / freecol-android

Automatically exported from code.google.com/p/freecol-android
0 stars 1 forks source link

Crash in GameFragment when tapping a tile #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Tap map tile
2. Crash

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

E/AndroidRuntime( 8341): FATAL EXCEPTION: main
E/AndroidRuntime( 8341): java.lang.NullPointerException
E/AndroidRuntime( 8341):    at 
org.freecolandroid.fragments.GameFragment$1.onTouch(GameFragment.java:107)
E/AndroidRuntime( 8341):    at 
android.view.View.dispatchTouchEvent(View.java:5541)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1963)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1732)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1963)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1732)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1963)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1732)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1963)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1732)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1963)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1732)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1963)
E/AndroidRuntime( 8341):    at 
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1732)
E/AndroidRuntime( 8341):    at 
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(P
honeWindow.java:1945)
E/AndroidRuntime( 8341):    at 
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow
.java:1399)
E/AndroidRuntime( 8341):    at 
android.app.Activity.dispatchTouchEvent(Activity.java:2365)
E/AndroidRuntime( 8341):    at 
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneW
indow.java:1893)
E/AndroidRuntime( 8341):    at 
android.view.View.dispatchPointerEvent(View.java:5726)
E/AndroidRuntime( 8341):    at 
android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:2922)
E/AndroidRuntime( 8341):    at 
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2498)
E/AndroidRuntime( 8341):    at 
android.view.ViewRootImpl.processInputEvents(ViewRootImpl.java:864)
E/AndroidRuntime( 8341):    at 
android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2507)
E/AndroidRuntime( 8341):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8341):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 8341):    at 
android.app.ActivityThread.main(ActivityThread.java:4447)
E/AndroidRuntime( 8341):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 8341):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 8341):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 8341):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 8341):    at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(  175):   Force finishing activity 
org.freecolandroid/.MainActivity

Original issue reported on code.google.com by erikandre@gmail.com on 7 Jul 2012 at 12:56

GoogleCodeExporter commented 9 years ago
Happens when you tap on a tile with no unit active (before end of turn).

Original comment by erikandre@gmail.com on 7 Jul 2012 at 12:59

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by erikandre@gmail.com on 7 Jul 2012 at 1:28