Take the 2-minute tour ×  I'm new to android and trying to
create a simple program that adds three inputs together and then
prints the output to an EditText. Whenever I hit the button I'm
getting a crash in line 63 (the last line I posted below) of my
code... I think it could be due to a null object or something
like that. I'm 99% sure all of my variables and everything else
are declared correctly. Anyways, here's my code for onClick
method and if anyone can figure out what's causing the crash I'd
be much obliged.  Button solve = (Button)
findViewById(R.id.solve);  solve.setOnClickListener(new
OnClickListener() {      public void onClick(View arg0) {
if  ((a.getText().length() == 0)             || ("
".equals(a.getText().toString()))             || ("
".equals(b.getText().toString()))             || ("
".equals(c.getText().toString()))             ||
(b.getText().length() == 0)             || (c.getText().length()
== 0)) { Toast.makeText(getApplicationContext(), "Some of your
inputs are empty.",  Toa