it's possible for the DOS not to be initialized before sending (in ASyncClient if you call send() immediately in draw() you will get nullpointer). so in this case we should not send and maybe print warning.
Hello , first congratulations on this remarkable work you are doing and thank you , I'm starting to program with processing recently, and I'm using the library MOST pixels event , with which I have encountered some problems because of time I could not run any of your examples do not understand what I'm doing wrong , but it always gives me the same error , i tried debugging to find the error and did not quite understand very well that fails, the error is always the following:
MPE CLIENT VERSION 2.0.2
Client : Settings : server = 192.168.12.201:9002 , id = 0 , Local dimensions = 320 , 240, location = 0, 0
Exception in thread " Animation Thread" java.lang.NullPointerException
at mpe.client.TCPClient.draw ( TCPClient.java : 184 )
at sun.reflect.NativeMethodAccessorImpl.invoke0 ( Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke ( NativeMethodAccessorImpl.java : 39 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java : 25 )
at java.lang.reflect.Method.invoke ( Method.java : 597)
at processing.core.PApplet $ RegisteredMethods.handle ( PApplet.java : 1159 )
at processing.core.PApplet $ RegisteredMethods.handle ( PApplet.java : 1152 )
at processing.core.PApplet.handleMethods ( PApplet.java : 1346 )
at processing.core.PApplet.handleDraw ( PApplet.java : 2320 )
at processing.core.PGraphicsJava2D.requestDraw ( PGraphicsJava2D.java : 243 )
at processing.core.PApplet.run ( PApplet.java : 2176 )
at java.lang.Thread.run ( Thread.java : 695 )
Running any example I always give the same result ...
I'm not able to reproduce this error, double-check yo uhave the most current version of library and examples?