Re: [android-developers] java.lang.nullpointerexception in ServerSocket.accept()

2012-07-10 Thread Akshay Kumar
I am getting Null Pointer Exception at s=ss.accept(); and not IOexception . On Mon, Jul 9, 2012 at 11:04 PM, Justin Anderson magouyaw...@gmail.comwrote: Well, apparently your ServerSocket is null... Likely you are getting the IOException... If you hit that exception then ss would be null.

[android-developers] java.lang.nullpointerexception in ServerSocket.accept()

2012-07-09 Thread Akki
I am trying to receive images over a network, I set up a server as follows ... public class IServerActivity extends Activity { ServerSocket ss = null; Bitmap bp ; Thread myCommsThread = null; protected static final int MSG_ID = 0x1337; public static final int SERVERPORT = 6000;

Re: [android-developers] java.lang.nullpointerexception in ServerSocket.accept()

2012-07-09 Thread Justin Anderson
Well, apparently your ServerSocket is null... Likely you are getting the IOException... If you hit that exception then ss would be null. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Jul 9, 2012 at 1:08 AM, Akki akshay.iitr@gmail.com wrote: