arduino - How do I remove the null pointer exception from this code in processing -
i trying project found in instructbles. http://www.instructables.com/id/touche-for-arduino-advanced-touch-sensing/?allsteps
there arduino code , processing code needs run implement project. codes can found here. https://github.com/illutron/advancedtouchsensing
the arduino code runs fine. 1 in processing gives nullpointerexception error , output plain white window instead of desired graphs. complete error message follows:
stable library ========================================= native lib version = rxtx-2.1-7 java lib version = rxtx-2.1-7 [0] "com1" [1] "com12" error, disabling serialevent() //./com12 java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ processing.serial.serial.serialevent(serial.java:287) @ gnu.io.rxtxport.sendevent(rxtxport.java:732) @ gnu.io.rxtxport.eventloop(native method) @ gnu.io.rxtxport$monitorthread.run(rxtxport.java:1575) caused by: java.lang.nullpointerexception @ processing.core.papplet.append(papplet.java:7966) @ sketch_130301a.serialevent(sketch_130301a.java:751) ... 8 more exception in thread "thread-3" java.lang.nullpointerexception @ processing.serial.serial.serialevent(serial.java:273) @ gnu.io.rxtxport.sendevent(rxtxport.java:732) @ gnu.io.rxtxport.eventloop(native method) @ gnu.io.rxtxport$monitorthread.run(rxtxport.java:1575) please me out. have been stuck here long time. in advance.
a null pointer exception occurs when java can't find index in array @ address. sure serial ports valid? have tested serial communication using sketch in processing?
Comments
Post a Comment