jdorothy/WordScramble — Issue #21: Game crashes when drawing over words
Author: jdorothy
Created: 2011-11-14 07:16:02+00:00
State: open

Padmaja, your latest changes are broken. I keep getting this error when I draw over a word while playing:

11-13 23:13:58.657: D/AndroidRuntime(3437): Shutting down VM
11-13 23:13:58.657: W/dalvikvm(3437): threadid=1: thread exiting with uncaught exception (group=0x4001d7f0)
11-13 23:13:58.669: E/AndroidRuntime(3437): FATAL EXCEPTION: main
11-13 23:13:58.669: E/AndroidRuntime(3437): java.lang.NullPointerException
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.wordscramble.view.GameActivity.isMultiple(GameActivity.java:459)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.wordscramble.view.GameActivity.isWord(GameActivity.java:313)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.wordscramble.view.GameActivity.onTouch(GameActivity.java:159)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.view.View.dispatchTouchEvent(View.java:3815)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:897)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1780)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1132)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.app.Activity.dispatchTouchEvent(Activity.java:2086)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1764)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.view.ViewRoot.handleMessage(ViewRoot.java:1810)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.os.Handler.dispatchMessage(Handler.java:99)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.os.Looper.loop(Looper.java:123)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at android.app.ActivityThread.main(ActivityThread.java:4627)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at java.lang.reflect.Method.invokeNative(Native Method)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at java.lang.reflect.Method.invoke(Method.java:521)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-13 23:13:58.669: E/AndroidRuntime(3437):	at dalvik.system.NativeStart.main(Native Method)