Null Pointer Exception on accessing value of EditText

by Ankur Kumar » Fri, 20 May 2011 09:30:39 GMT


Sponsored Links
 Hello Developers,

Please help me with this problem. I am getting
java.lang.NullPointerException at step 3 in my code. Have not been
able to figure this out. The value I am entering in the EditText is
not empty.

                       1.  EditText IPInput = (EditText)
findViewById(R.id.ip);
                       2.  IPInput.getText().toString(); System.out.println(ip);
                       3.  System.out.println(IPInput.getText().toString());

--
Regards,
Ankur Kumar

-- 



Null Pointer Exception on accessing value of EditText

by Ankur Kumar » Fri, 20 May 2011 09:30:40 GMT


 Hello Developers,

Please help me with this problem. I am getting*java.lang.NullPointerException
* at step 3 in my code. Have not been able to figure this out. The value I
am entering in the EditText is not empty.

                       1.  EditText IPInput = (EditText)
findViewById(R.id.ip);
       2.  IPInput.getText().toString(); System.out.println(ip);
        3.  System.out.println(IPInput.getText().toString());



--
Regards,
Ankur Kumar

-- 


Sponsored Links


Other Threads

1. Include files in package file

Dear All,

Any one knows how to include files (xml, text files, image files) into
the package file for deployment and then access the file using the
file name ("background.png") instead of using resource
(R.drawable.background)?

I've already search every where but I can not found any solution :(

BR,
Irwansyah

--~--~---------~--~----~------------~-------~--~----~

2. ADT installation error !!

Hi All,

I have installed ADT earlier on  my windows xp with out any issues,
now trying on ubuntu I get this error
http://download.eclipse.org/releases/ganymede/features/org.eclipse.birt.report.data.oda.jdbc.dbprofile.sqlbuilder.feature_2.3.1v20080630-787A39xxELbRjZxlz-xBh6S1fcsX.jar'
has encountered a problem.

Transfer Exception.

when i check the details for this dialog

Transfer Exception
Read timed out

Any help regarding the same will be appreciated.

-Thanks & regards,
Manjunath S

--~--~---------~--~----~------------~-------~--~----~

3. java.lang.NullPointerException with getting ID of element

4. Changed activity from a BroadcastReceiver.

5. App Idea for your consideration

6. Eclipse connecting to real atrget

7. reference modifiers