Note that there are some explanatory texts on larger screens.

plurals
  1. PONullPointerException report from play store
    primarykey
    data
    text
    <p>Today I got a <code>NullPointerException</code> report. I can't reproduce this NullPointerException on my own phones.</p> <p>I really can't find what is causing the NullPointerException.</p> <p>Here is the report:</p> <pre><code>java.lang.NullPointerException at com.dsf.sdf.ManActivity$25.onTouch(ManActivity.java:445) at android.view.View.dispatchTouchEvent(View.java:3762) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:936) at com.android.internal.policy.impl.PhoneWindow$DecorView. (PhoneWindow.java:1674) at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1109) at android.app.Activity.dispatchTouchEvent(Activity.java:2086) at com.android.internal.policy.impl.PhoneWindow$DecorView. dispatchTouchEvent(PhoneWindow.java:1658) at android.view.ViewRoot.handleMessage(ViewRoot.java:1785) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller. run(ZygoteInit.java:876) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634) at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>Here is the code from line 936:</p> <pre><code>sdff.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_DOWN) { sdff.setBackgroundDrawable(getResources(). getDrawable(R.drawable.pressed)); } else if (event.getAction() == MotionEvent.ACTION_UP) { if (play != null) { play.reset(); play.release(); } play = MediaPlayer.create(ManActivity.this, R.raw.sdff); play.start(); sdff.setBackgroundDrawable(getResources(). getDrawable(R.drawable.button)); } else if (event.getAction() == MotionEvent.ACTION_CANCEL) { sdff.setBackgroundDrawable(getResources(). getDrawable(R.drawable.button)); } return false; } }); </code></pre> <p>It's a simple button wich plays a sound when pressed.</p> <p>So what's causing the exception?</p> <p>Edit:</p> <pre><code>Code at line 445: play = MediaPlayer.create(ManActivity.this, R.raw.bf); play.start(); auth.setBackgroundDrawable(getResources().getDrawable( R.drawable.button)); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload