posted 7 years ago
Greetings everyone, everything compiles just fine. The issue I'm having is that I'm getting a runtime error with my code. The error I'm getting is in regards to a NULL pointer exception that states the following:
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference
at com.Gelajo.africancurrencyconverter.MainActivity.onCreate(MainActivity.java:41)
I have checked the code and I don't understand why I'm getting a nullpointerexception. the issue is with this code here at line 41:
This is the method being called. Thanks: