I am getting the following stacktrace:
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.EditText.setText(java.lang.CharSequence)' on a null object reference --------- Stack trace --------- mypackage.Inbox$9.onclick(Inbox.java:1538) android.view.View.performClick(View.java:5204) android.view.View$PerformClick.run(View.java:21153) android.os.Handler.handleCallback(Handler.java:739) android.os.Handler.dispatchMessage(Handler.java:95) android.os.Looper.loop(Looper.java:148) android.app.ActivityThread.main(ActivityThread.java:5444) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
double taxvalue = 0.0;
double acttotal=Global.getDouble(((EditText)container.findViewById(R.id.textView9)).getText().toString());
taxvalue = Global.getDouble(((EditText) container.findViewById(R.id.textView8)).getText().toString());
((EditText) (table.getChildAt(1).findViewById(R.id.amount))).setText(Global.formatDouble(acttotal - taxvalue));
Here table - LinearLayout, Last line is Line no 1538.
I tried table=null; But cannot be reproduced. what is the chance to get this issue.