Hi Justin, Here are lines that give the error. editTextProducer = (EditText)findViewById(R.id.editTextProducer); producer = editTextProducer.getText().toString(); Private String fullname = "Name: "; Private String ConcatFixedTextsValue = fullname.concat(producer);
I also get the error when I used "Private String ConcatFixedTextsValue = fullname + producer;" editTextProducer is a "text" entered by a user via an input field. I can print its value on console using Log.d() but I can't concatenate it with another string. I would say it's the variable that is null (but prints out the entered value via a console). Kindly help. On Sep 5, 6:20 pm, Justin Anderson <[email protected]> wrote: > Sorry... but I'm not going to search through your entire class file to > figure out what is wrong. Judging from your error though, the problem is > on line 109 of Searchnolly.java. > > That would mean that you are using a variable that is null. Try debugging > to figure out what is null and why... and then fix it. > > Thanks, > Justin Anderson > MagouyaWare Developerhttp://sites.google.com/site/magouyaware > > > > > > > > On Tue, Sep 4, 2012 at 2:54 AM, Plasma <[email protected]> wrote: > > Please help me fix the error in the code here - > >http://www.fpaste.org/HzoM/. > > > The error I am gettting is: > > > 09-04 08:32:40.524: E/AndroidRuntime(644): FATAL EXCEPTION: main 09-04 > > 08:32:40.524: E/AndroidRuntime(644): java.lang.NullPointerException > > 09-04 08:32:40.524: E/AndroidRuntime(644): at > > com.vodacom.nollyviewer.Searchnolly.SearchVideos(Searchnolly.java:109) > > 09-04 08:32:40.524: E/AndroidRuntime(644): at > > com.vodacom.nollyviewer.Searchnolly$1.onClick(Searchnolly.java:71) > > 09-04 08:32:40.524: E/AndroidRuntime(644): at > > android.view.View.performClick(View.java:2485) > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

